mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-25 11:22:26 +02:00
Fix qemu tests on travis
This commit is contained in:
parent
669ec42985
commit
352fa3480b
@ -259,6 +259,7 @@ def test_control_vm_expect_text(vm, loop, running_subprocess_mock):
|
|||||||
def test_build_command(vm, loop, fake_qemu_binary, port_manager):
|
def test_build_command(vm, loop, fake_qemu_binary, port_manager):
|
||||||
|
|
||||||
os.environ["DISPLAY"] = "0:0"
|
os.environ["DISPLAY"] = "0:0"
|
||||||
|
vm.kvm = False
|
||||||
with asyncio_patch("asyncio.create_subprocess_exec", return_value=MagicMock()) as process:
|
with asyncio_patch("asyncio.create_subprocess_exec", return_value=MagicMock()) as process:
|
||||||
cmd = loop.run_until_complete(asyncio.async(vm._build_command()))
|
cmd = loop.run_until_complete(asyncio.async(vm._build_command()))
|
||||||
assert cmd == [
|
assert cmd == [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user