tests: use "run" script to execute device-crash-test
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>
John Snow committed
Feb 18, 2026 at 16:34 UTC
1150b6e4bf4cc0889cd0865ba290582436bfa782
2 files changed
+4
-4
.gitlab-ci.d/buildtest.yml
+3
-3
@@ -102,7 +102,7 @@ crash-test-debian:
102
script:
103
- cd build
104
- make NINJA=":" check-venv
105
- - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
105
+ - ./run scripts/device-crash-test -q --tcg-only ./qemu-system-i386
106
107
build-system-fedora:
108
extends:
@@ -159,8 +159,8 @@ crash-test-fedora:
159
script:
160
- cd build
161
- make NINJA=":" check-venv
162
- - pyvenv/bin/python3 scripts/device-crash-test -q ./qemu-system-ppc
163
- - pyvenv/bin/python3 scripts/device-crash-test -q ./qemu-system-riscv32
162
+ - ./run scripts/device-crash-test -q ./qemu-system-ppc
163
+ - ./run scripts/device-crash-test -q ./qemu-system-riscv32
164
165
build-system-centos:
166
extends:
scripts/device-crash-test
+1
-1
@@ -42,7 +42,7 @@ except ModuleNotFoundError as exc:
42
print(f"Module '{exc.name}' not found.")
43
print(" Try 'make check-venv' from your build directory,")
44
print(" and then one way to run this script is like so:")
45
- print(f' > $builddir/pyvenv/bin/python3 "{path}"')
45
+ print(f' > $builddir/run "{path}"')
46
sys.exit(1)
47
48
logger = logging.getLogger('device-crash-test')