From eb3fc1bb3a950320d24306367c2ca508553667a1 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 10 Jan 2023 11:09:27 +0800 Subject: [PATCH] Fix more tests --- tests/compute/qemu/test_qemu_manager.py | 2 +- tests/compute/qemu/test_qemu_vm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/compute/qemu/test_qemu_manager.py b/tests/compute/qemu/test_qemu_manager.py index e940a3ed..7a14601f 100644 --- a/tests/compute/qemu/test_qemu_manager.py +++ b/tests/compute/qemu/test_qemu_manager.py @@ -32,7 +32,7 @@ from unittest.mock import patch, MagicMock def fake_qemu_img_binary(tmpdir): if sys.platform.startswith("win"): - bin_path = str(tmpdir / "qemu-img.exe") + bin_path = str(tmpdir / "qemu-img.EXE") else: bin_path = str(tmpdir / "qemu-img") with open(bin_path, "w+") as f: diff --git a/tests/compute/qemu/test_qemu_vm.py b/tests/compute/qemu/test_qemu_vm.py index 31844ab1..55e9e954 100644 --- a/tests/compute/qemu/test_qemu_vm.py +++ b/tests/compute/qemu/test_qemu_vm.py @@ -46,7 +46,7 @@ def fake_qemu_img_binary(monkeypatch, tmpdir): monkeypatch.setenv("PATH", str(tmpdir)) if sys.platform.startswith("win"): - bin_path = os.path.join(os.environ["PATH"], "qemu-img.exe") + bin_path = os.path.join(os.environ["PATH"], "qemu-img.EXE") else: bin_path = os.path.join(os.environ["PATH"], "qemu-img") with open(bin_path, "w+") as f: @@ -60,7 +60,7 @@ def fake_qemu_binary(monkeypatch, tmpdir): monkeypatch.setenv("PATH", str(tmpdir)) if sys.platform.startswith("win"): - bin_path = os.path.join(os.environ["PATH"], "qemu-system-x86_64w.exe") + bin_path = os.path.join(os.environ["PATH"], "qemu-system-x86_64w.EXE") else: bin_path = os.path.join(os.environ["PATH"], "qemu-system-x86_64") with open(bin_path, "w+") as f: