mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 16:28:11 +00:00
parent
834a554fea
commit
4df95efdec
@ -93,6 +93,9 @@ Windows
|
|||||||
|
|
||||||
Please use our all-in-one installer.
|
Please use our all-in-one installer.
|
||||||
|
|
||||||
|
If you install it via source you need to install also:
|
||||||
|
https://sourceforge.net/projects/pywin32/
|
||||||
|
|
||||||
Mac OS X
|
Mac OS X
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -25,6 +25,8 @@ from .qemu import Qemu
|
|||||||
MODULES = [VPCS, VirtualBox, Dynamips, Qemu]
|
MODULES = [VPCS, VirtualBox, Dynamips, Qemu]
|
||||||
|
|
||||||
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test") or os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
|
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test") or os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
|
||||||
# IOU runs only on Linux
|
|
||||||
from .iou import IOU
|
# IOU runs only on Linux but testsuite work on UNIX platform
|
||||||
MODULES.append(IOU)
|
if not sys.platform.startswith("win"):
|
||||||
|
from .iou import IOU
|
||||||
|
MODULES.append(IOU)
|
||||||
|
@ -18,10 +18,13 @@
|
|||||||
import pytest
|
import pytest
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
import sys
|
||||||
|
|
||||||
from tests.utils import asyncio_patch
|
from tests.utils import asyncio_patch
|
||||||
from unittest.mock import patch, MagicMock, PropertyMock
|
from unittest.mock import patch, MagicMock, PropertyMock
|
||||||
|
|
||||||
|
pytestmark = pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def fake_iou_bin(tmpdir):
|
def fake_iou_bin(tmpdir):
|
||||||
|
@ -20,9 +20,13 @@ import pytest
|
|||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
import uuid
|
import uuid
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
pytestmark = pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
|
||||||
|
|
||||||
|
if not sys.platform.startswith("win"):
|
||||||
|
from gns3server.modules.iou import IOU
|
||||||
|
|
||||||
from gns3server.modules.iou import IOU
|
|
||||||
from gns3server.modules.iou.iou_error import IOUError
|
from gns3server.modules.iou.iou_error import IOUError
|
||||||
from gns3server.modules.project_manager import ProjectManager
|
from gns3server.modules.project_manager import ProjectManager
|
||||||
|
|
||||||
|
@ -21,13 +21,19 @@ import asyncio
|
|||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
import socket
|
import socket
|
||||||
|
import sys
|
||||||
from tests.utils import asyncio_patch
|
from tests.utils import asyncio_patch
|
||||||
|
|
||||||
|
|
||||||
from unittest.mock import patch, MagicMock, PropertyMock
|
from unittest.mock import patch, MagicMock, PropertyMock
|
||||||
from gns3server.modules.iou.iou_vm import IOUVM
|
|
||||||
from gns3server.modules.iou.iou_error import IOUError
|
pytestmark = pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
|
||||||
from gns3server.modules.iou import IOU
|
|
||||||
|
if not sys.platform.startswith("win"):
|
||||||
|
from gns3server.modules.iou.iou_vm import IOUVM
|
||||||
|
from gns3server.modules.iou.iou_error import IOUError
|
||||||
|
from gns3server.modules.iou import IOU
|
||||||
|
|
||||||
from gns3server.config import Config
|
from gns3server.config import Config
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user