test: support TEST_NO_KVM
authorLuca Boccassi <bluca@debian.org>
Sun, 16 Jun 2024 18:15:24 +0000 (19:15 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 17 Jun 2024 14:52:50 +0000 (15:52 +0100)
The shell integration suite allows to manually deselect KVM, so
suppor the same env var for the same purpose in python.

test/integration-test-wrapper.py

index 1e015e7d47e5f9367953f31bbda394e6025d453f..15b1ce10553372a5bcbd2792063bea638ea8f632 100755 (executable)
@@ -124,6 +124,7 @@ def main():
         *args.mkosi_args,
         '--append',
         '--qemu-firmware', args.firmware,
+        '--qemu-kvm', "auto" if not bool(int(os.getenv("TEST_NO_KVM", "0"))) else "no",
         '--kernel-command-line-extra',
         ' '.join([
             'systemd.hostname=H',