From 6c8c5c1787fc2233ab44d0c61d08beb9d6662c83 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 4 Jul 2023 13:31:21 +1000 Subject: [PATCH] Ignore uefi test on Windows --- tests/compute/qemu/test_qemu_vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/compute/qemu/test_qemu_vm.py b/tests/compute/qemu/test_qemu_vm.py index 19e83ca7..f9447f9e 100644 --- a/tests/compute/qemu/test_qemu_vm.py +++ b/tests/compute/qemu/test_qemu_vm.py @@ -387,6 +387,7 @@ async def test_bios_option(vm, tmpdir, fake_qemu_img_binary): assert ' '.join(['-bios', str(tmpdir / "test.img")]) in ' '.join(options) +@pytest.mark.skipif(sys.platform.startswith("win"), reason="Test not working on Windows") async def test_uefi_boot_mode_option(vm, tmpdir, images_dir, fake_qemu_img_binary): vm.manager.get_qemu_version = AsyncioMagicMock(return_value="3.1.0") @@ -401,7 +402,7 @@ async def test_uefi_boot_mode_option(vm, tmpdir, images_dir, fake_qemu_img_binar f.write('1') options = await vm._build_command() - assert ' '.join(["-drive", "if=pflash,format=raw,readonly,file={}".format(os.path.normpath(ovmf_code_path))]) in ' '.join(options) + assert ' '.join(["-drive", "if=pflash,format=raw,readonly,file={}".format(ovmf_code_path)]) in ' '.join(options) assert ' '.join(["-drive", "if=pflash,format=raw,file={}".format(os.path.join(vm.working_dir, "OVMF_VARS.fd"))]) in ' '.join(options)