Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/supervisor/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ async def test_create_execution(mocker):
mocker.patch("aleph.vm.controllers.firecracker.executable.settings", new=mock_settings)
mocker.patch("aleph.vm.controllers.firecracker.program.settings", new=mock_settings)

if not mock_settings.FAKE_DATA_RUNTIME.exists():
pytest.xfail("Test Runtime not setup. run `cd runtimes/aleph-debian-12-python && sudo ./create_disk_image.sh`")

mock_settings.FAKE_DATA_PROGRAM = mock_settings.BENCHMARK_FAKE_DATA_PROGRAM
mock_settings.ALLOW_VM_NETWORKING = False
mock_settings.USE_JAILER = False
Expand Down
2 changes: 2 additions & 0 deletions tests/supervisor/test_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ async def test_create_instance():
# Ensure that the settings are correct and required files present.
settings.setup()
settings.check()
if not settings.FAKE_DATA_RUNTIME.exists():
pytest.xfail("Test Runtime not setup. run `cd runtimes/aleph-debian-12-python && sudo ./create_disk_image.sh`")

# The database is required for the metrics and is currently not optional.
engine = metrics.setup_engine()
Expand Down
4 changes: 4 additions & 0 deletions tests/supervisor/test_qemu_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ async def test_create_qemu_instance():
settings.ENABLE_CONFIDENTIAL_COMPUTING = False
settings.ALLOW_VM_NETWORKING = False
settings.USE_JAILER = False
if not settings.FAKE_INSTANCE_BASE.exists():
pytest.xfail("Test Runtime not setup. run `cd runtimes/instance-rootfs && sudo ./create-debian-12-disk.sh`")

logging.basicConfig(level=logging.DEBUG)

Expand Down Expand Up @@ -117,6 +119,8 @@ async def test_create_qemu_instance_online():
# Ensure that the settings are correct and required files present.
settings.setup()
settings.check()
if not settings.FAKE_INSTANCE_BASE.exists():
pytest.xfail("Test Runtime not setup. run `cd runtimes/instance-rootfs && sudo ./create-debian-12-disk.sh`")

# The database is required for the metrics and is currently not optional.
engine = metrics.setup_engine()
Expand Down