ci: Avoid subshell for executing HWCI_TEST_SCRIPT

Ensure that $HWCI_TEST_SCRIPT is an executable we can run ourselves, and
run that directly instead of invoking a subshell.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31110>
This commit is contained in:
Daniel Stone
2024-08-31 15:01:19 +01:00
parent 275727add0
commit 2dbadf8109
5 changed files with 6 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ VARS=(
HWCI_KVM
HWCI_START_WESTON
HWCI_START_XORG
HWCI_TEST_ARGS
HWCI_TEST_SCRIPT
IR3_SHADER_DEBUG
JOB_ARTIFACTS_BASE

View File

@@ -201,7 +201,7 @@ if [ -n "$HWCI_START_WESTON" ]; then
fi
set +e
bash -c ". $SCRIPTS_DIR/setup-test-env.sh && $HWCI_TEST_SCRIPT"
$HWCI_TEST_SCRIPT ${HWCI_TEST_ARGS:-}
EXIT_CODE=$?
set -e