]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: Don't override QemuKvm= value if TEST_NO_KVM=0
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 20 Aug 2024 12:39:45 +0000 (14:39 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Aug 2024 16:52:09 +0000 (01:52 +0900)
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

index 09310437d7cb28c90e5e5605971db77a8854537a..e0a4b6e7805f938ffb23634694dd0b68e1d8bd9e 100755 (executable)
@@ -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',