Fix more tests

This commit is contained in:
grossmj committed 2023-01-10 11:09:27 +08:00
1 parent e9c95ff299
commit eb3fc1bb3a
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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:
+2 -2
View File
@@ -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: