aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/qemu_test
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-07-01 17:22:27 +0100
committerPeter Maydell <peter.maydell@linaro.org>2025-07-01 17:22:27 +0100
commit767df742fbc9e6cc06e9309685407beb2565c272 (patch)
tree8958d3e1f02a8324a701237f29d0e546cf2db9cc /tests/functional/qemu_test
parentf4b5fbeff6be3797881e69cbf42cc689a4e316c4 (diff)
downloadqemu-767df742fbc9e6cc06e9309685407beb2565c272.zip
qemu-767df742fbc9e6cc06e9309685407beb2565c272.tar.gz
qemu-767df742fbc9e6cc06e9309685407beb2565c272.tar.bz2
tests/functional: Add hvf_available() helper
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20250623121845.7214-26-philmd@linaro.org [PMM: tweaks to satisfy the python linter CI job] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/functional/qemu_test')
-rw-r--r--tests/functional/qemu_test/testcase.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu_test/testcase.py
index 50c401b..2082c6f 100644
--- a/tests/functional/qemu_test/testcase.py
+++ b/tests/functional/qemu_test/testcase.py
@@ -23,7 +23,7 @@ import unittest
import uuid
from qemu.machine import QEMUMachine
-from qemu.utils import kvm_available, tcg_available
+from qemu.utils import hvf_available, kvm_available, tcg_available
from .archive import archive_extract
from .asset import Asset
@@ -317,7 +317,9 @@ class QemuSystemTest(QemuBaseTest):
:type accelerator: str
"""
checker = {'tcg': tcg_available,
- 'kvm': kvm_available}.get(accelerator)
+ 'kvm': kvm_available,
+ 'hvf': hvf_available,
+ }.get(accelerator)
if checker is None:
self.skipTest("Don't know how to check for the presence "
"of accelerator %s" % accelerator)