ci: Fix init-stage2 exit code

After a LAVA job submitter rework, the init-stage2.sh was changed to be
compatible with new LAVA job definitions, but the result from the script
represented by `HWCI_TEST_SCRIPT` variable is obfuscated by the `set -e`
command. So when the test script fails, `set` will override the exit
code and the jobs will pass when they should fail.

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16325>
This commit is contained in:
Guilherme Gallo 2022-05-04 10:52:10 -03:00 committed by Marge Bot
parent 681abdcc57
commit ea85f6cfda
1 changed files with 1 additions and 1 deletions

View File

@ -127,8 +127,8 @@ fi
RESULT=fail
set +e
sh -c "$HWCI_TEST_SCRIPT"
set -e
EXIT_CODE=$?
set -e
# Let's make sure the results are always stored in current working directory
mv -f ${CI_PROJECT_DIR}/results ./ 2>/dev/null || true