android/ci: raise error on script when not related to the tests

The cuttlefish-runner.sh script was failing before reaching the test
suite execution (which was not executing the complete test suite due to
the previous non-catched failures, and was erroneous passing) and we
were not catching that.
Add set -e so we can catch those.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21941>
This commit is contained in:
Helen Koike
2023-03-15 12:55:12 -03:00
committed by Marge Bot
parent 89432213ef
commit 1d0cc57086

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
set -xe
export HOME=/cuttlefish
export PATH=$PATH:/cuttlefish/bin
@@ -88,6 +88,7 @@ $ADB shell rm /vendor/lib64/egl/libGLESv2_emulation.so
RESULTS=/data/results
set +e
$ADB shell "mkdir /data/results; cd /data; strace -o /data/results/out.strace -f -s 1000 ./deqp-runner \
suite \
--suite /data/deqp-$DEQP_SUITE.toml \
@@ -101,6 +102,7 @@ $ADB shell "mkdir /data/results; cd /data; strace -o /data/results/out.strace -f
$DEQP_RUNNER_OPTIONS"
EXIT_CODE=$?
set -e
$ADB pull $RESULTS results