From 669295131bab94996627cf0483f810e57b59aa0b Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 9 Nov 2015 15:01:02 +0100 Subject: [PATCH] Fix qemu tests on Linux --- tests/modules/qemu/test_qemu_vm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/modules/qemu/test_qemu_vm.py b/tests/modules/qemu/test_qemu_vm.py index c4c49846..855e1cc2 100644 --- a/tests/modules/qemu/test_qemu_vm.py +++ b/tests/modules/qemu/test_qemu_vm.py @@ -254,7 +254,6 @@ def test_set_qemu_path_windows(vm, tmpdir): assert vm.platform == "x86_64" -@pytest.mark.skipif(sys.platform.startswith("linux") is False, reason="Supported only on linux") def test_set_qemu_path_kvm_binary(vm, tmpdir, fake_qemu_binary): bin_path = os.path.join(os.environ["PATH"], "qemu-kvm") @@ -265,7 +264,7 @@ def test_set_qemu_path_kvm_binary(vm, tmpdir, fake_qemu_binary): # It should find the binary in the path vm.qemu_path = "qemu-kvm" - assert vm.qemu_path == fake_qemu_binary + assert vm.qemu_path.endswith("qemu-kvm") assert vm.platform == "x86_64"