Skip to content

Commit 3b03bfb

Browse files
committed
Patch journal.stream so the output of qemu proecss is shown in the test output
1 parent cf2afc4 commit 3b03bfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/supervisor/test_qemu_instance.py

+3
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ async def test_create_qemu_instance_online(mocker):
121121
mocker.patch.object(settings, "ENABLE_CONFIDENTIAL_COMPUTING", False)
122122
mocker.patch.object(settings, "USE_JAILER", False)
123123

124+
# Patch journal.stream so the output of qemu proecss is shown in the test output
125+
mocker.patch("aleph.vm.hypervisors.qemu.qemuvm.journal.stream", return_value=None)
126+
124127
if not settings.FAKE_INSTANCE_BASE.exists():
125128
pytest.xfail(
126129
"Test instance disk {} not setup. run `cd runtimes/instance-rootfs && sudo ./create-debian-12-qemu-disk.sh` ".format(

0 commit comments

Comments
 (0)