ci: group RESULT logic in a single place
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21884>
This commit is contained in:

committed by
Marge Bot

parent
755282accc
commit
7176e0c160
@@ -169,7 +169,6 @@ if [ -n "$HWCI_START_WESTON" ]; then
|
|||||||
while [ ! -S "$WESTON_X11_SOCK" ]; do sleep 1; done
|
while [ ! -S "$WESTON_X11_SOCK" ]; do sleep 1; done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RESULT=fail
|
|
||||||
set +e
|
set +e
|
||||||
bash -c ". $SCRIPTS_DIR/setup-test-env.sh && $HWCI_TEST_SCRIPT"
|
bash -c ". $SCRIPTS_DIR/setup-test-env.sh && $HWCI_TEST_SCRIPT"
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
@@ -193,7 +192,7 @@ fi
|
|||||||
|
|
||||||
# We still need to echo the hwci: mesa message, as some scripts rely on it, such
|
# We still need to echo the hwci: mesa message, as some scripts rely on it, such
|
||||||
# as the python ones inside the bare-metal folder
|
# as the python ones inside the bare-metal folder
|
||||||
[ ${EXIT_CODE} -eq 0 ] && RESULT=pass
|
[ ${EXIT_CODE} -eq 0 ] && RESULT=pass || RESULT=fail
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
echo "hwci: mesa: $RESULT"
|
echo "hwci: mesa: $RESULT"
|
||||||
|
Reference in New Issue
Block a user