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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user