mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix tests on MacOS
This commit is contained in:
1 parent
38326f7d72
commit
ae7bf828cd
3 files changed
+11
-6
No files matched your search
@@ -15,6 +15,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
from gns3server.handlers.api.version_handler import VersionHandler
|
||||
from gns3server.handlers.api.network_handler import NetworkHandler
|
||||
from gns3server.handlers.api.project_handler import ProjectHandler
|
||||
@@ -25,5 +27,6 @@ from gns3server.handlers.api.virtualbox_handler import VirtualBoxHandler
|
||||
from gns3server.handlers.api.vpcs_handler import VPCSHandler
|
||||
from gns3server.handlers.upload_handler import UploadHandler
|
||||
|
||||
if sys.platform.startswith("linux"):
|
||||
print(os.environ)
|
||||
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
|
||||
from gns3server.handlers.api.iou_handler import IOUHandler
|
||||
@@ -23,7 +23,7 @@ from .qemu import Qemu
|
||||
|
||||
MODULES = [VPCS, VirtualBox, Dynamips, Qemu]
|
||||
|
||||
if sys.platform.startswith("linux"):
|
||||
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
|
||||
# IOU runs only on Linux
|
||||
from .iou import IOU
|
||||
MODULES.append(IOU)
|
||||
Reference in new issue
Block a user