From c8e7cfeddc7be498c688c564f31676b856181120 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 20 Aug 2024 14:39:45 +0200 Subject: [PATCH] tests: Don't override QemuKvm= value if TEST_NO_KVM=0 Let's disable KVM if TEST_NO_KVM=1 is set but let's not specify anything if it's not set so the QemuKvm= setting from mkosi.conf is used. --- test/integration-test-wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index 09310437d7..e0a4b6e780 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -149,7 +149,7 @@ def main(): '--runtime-scratch=no', *args.mkosi_args, '--qemu-firmware', args.firmware, - '--qemu-kvm', "auto" if not bool(int(os.getenv("TEST_NO_KVM", "0"))) else "no", + *(['--qemu-kvm', 'no'] if int(os.getenv("TEST_NO_KVM", "0")) else []), '--kernel-command-line-extra', ' '.join([ 'systemd.hostname=H', -- 2.25.1