mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-22 14:05:19 +02:00
Raise an error if image is missing on compute
This commit is contained in:
23 files changed
+108
-108
No files matched your search
@@ -230,6 +230,18 @@ def run_around_tests(monkeypatch, port_manager, controller, config):
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def images_dir(config):
|
||||
"""
|
||||
Get the location of images
|
||||
"""
|
||||
path = config.get_section_config("Server").get("images_path")
|
||||
os.makedirs(path, exist_ok=True)
|
||||
os.makedirs(os.path.join(path, "QEMU"))
|
||||
os.makedirs(os.path.join(path, "IOU"))
|
||||
return path
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def darwin_platform():
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user