ci: Comment run-test.sh exit paths

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Robert Foss 6 years ago committed by Jakob Bornecrantz
parent 0215e10ea4
commit bf3e07087c
  1. 19
      ci/run-tests.sh

@ -48,6 +48,12 @@ mkdir -p /virglrenderer/results/make_check
cp tests/test*.log /virglrenderer/results/make_check/ cp tests/test*.log /virglrenderer/results/make_check/
make -j$(nproc) install make -j$(nproc) install
# Stop testing process if a failure have been found
if [ -f /virglrenderer/results/regressions_detected ]; then
exit 1
fi
: ' : '
cd /qemu cd /qemu
make -j$(nproc) install make -j$(nproc) install
@ -76,14 +82,15 @@ fakemachine --qemuopts="-vga virtio -display egl-headless,gl=es" \
-- /virglrenderer/ci/run-deqp.sh -- /virglrenderer/ci/run-deqp.sh
' '
# Cut this short if the unit tests fail # Stop testing process if a failure have been found
if [ -f /virglrenderer/results/regressions_detected ]; then
if [ ! -f /virglrenderer/results/regressions_detected ]; then exit 1
/virglrenderer/ci/run-deqp.sh --with-vtest $LIMIT_TESTSET
/virglrenderer/ci/run-deqp.sh --host-gl --with-vtest $LIMIT_TESTSET
fi fi
/virglrenderer/ci/run-deqp.sh --with-vtest $LIMIT_TESTSET
/virglrenderer/ci/run-deqp.sh --host-gl --with-vtest $LIMIT_TESTSET
# Return test pass/fail
if [ -f /virglrenderer/results/regressions_detected ]; then if [ -f /virglrenderer/results/regressions_detected ]; then
exit 1 exit 1
fi fi

Loading…
Cancel
Save