]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests: use "run" script to execute device-crash-test
authorJohn Snow <jsnow@redhat.com>
Wed, 18 Feb 2026 21:34:04 +0000 (16:34 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 23 Feb 2026 18:24:42 +0000 (13:24 -0500)
Instead of invoking python from the configure venv manually, instruct
developers to use the "run" script instead. Change the test invocation
to be a good example going forward.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260218213416.674483-10-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
.gitlab-ci.d/buildtest.yml
scripts/device-crash-test

index 4c280dd29bc8fb181d4b722c02cd172589a5772a..b2db70ff9046fd7ad7cf32ad25269f8f05826954 100644 (file)
@@ -102,7 +102,7 @@ crash-test-debian:
   script:
     - cd build
     - make NINJA=":" check-venv
-    - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
+    - ./run scripts/device-crash-test -q --tcg-only ./qemu-system-i386
 
 build-system-fedora:
   extends:
@@ -159,8 +159,8 @@ crash-test-fedora:
   script:
     - cd build
     - make NINJA=":" check-venv
-    - pyvenv/bin/python3 scripts/device-crash-test -q ./qemu-system-ppc
-    - pyvenv/bin/python3 scripts/device-crash-test -q ./qemu-system-riscv32
+    - ./run scripts/device-crash-test -q ./qemu-system-ppc
+    - ./run scripts/device-crash-test -q ./qemu-system-riscv32
 
 build-system-centos:
   extends:
index f97d9909c05c51c214438fe866f1ab72658defa5..8a91dcaee31b89bcfaa1e87e61e76ea953eb156d 100755 (executable)
@@ -42,7 +42,7 @@ except ModuleNotFoundError as exc:
     print(f"Module '{exc.name}' not found.")
     print("  Try 'make check-venv' from your build directory,")
     print("  and then one way to run this script is like so:")
-    print(f'  > $builddir/pyvenv/bin/python3 "{path}"')
+    print(f'  > $builddir/run "{path}"')
     sys.exit(1)
 
 logger = logging.getLogger('device-crash-test')