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:
parent
681abdcc57
commit
ea85f6cfda
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue