summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.d
diff options
context:
space:
mode:
authorJohn Snow2022-05-26 02:09:21 +0200
committerPaolo Bonzini2022-06-06 09:26:54 +0200
commit1d8cf47e5b8b4faa95954824cb6610d81c50d7d2 (patch)
treebd84458af018dc481f700f52020a25d418deb62c /.gitlab-ci.d
parenttests: add python3-venv to debian10.docker (diff)
downloadqemu-1d8cf47e5b8b4faa95954824cb6610d81c50d7d2.tar.gz
qemu-1d8cf47e5b8b4faa95954824cb6610d81c50d7d2.tar.xz
qemu-1d8cf47e5b8b4faa95954824cb6610d81c50d7d2.zip
tests: run 'device-crash-test' from tests/venv
Remove the sys.path hacking from device-crash-test, and add in a little user-friendly message for anyone who was used to running this script directly from the source tree. Modify the GitLab job recipes to create the tests/venv first, then run device-crash-test from that venv. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220526000921.1581503-10-jsnow@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '.gitlab-ci.d')
-rw-r--r--.gitlab-ci.d/buildtest.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index ecac3ec50c..544385f5be 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -110,7 +110,8 @@ crash-test-debian:
IMAGE: debian-amd64
script:
- cd build
- - scripts/device-crash-test -q ./qemu-system-i386
+ - make check-venv
+ - tests/venv/bin/python3 scripts/device-crash-test -q ./qemu-system-i386
build-system-fedora:
extends: .native_build_job_template
@@ -155,8 +156,9 @@ crash-test-fedora:
IMAGE: fedora
script:
- cd build
- - scripts/device-crash-test -q ./qemu-system-ppc
- - scripts/device-crash-test -q ./qemu-system-riscv32
+ - make check-venv
+ - tests/venv/bin/python3 scripts/device-crash-test -q ./qemu-system-ppc
+ - tests/venv/bin/python3 scripts/device-crash-test -q ./qemu-system-riscv32
build-system-centos:
extends: .native_build_job_template