From 356c9c25c399f25f1ecd1e531bbb73d87b2e7f09 Mon Sep 17 00:00:00 2001 From: Cristian Ciocaltea Date: Wed, 23 Feb 2022 20:29:24 +0200 Subject: [PATCH] ci: Allow specifying any shell command via HWCI_TEST_SCRIPT Interpret the value of HWCI_TEST_SCRIPT environment variable as a shell command. This allows, for example, to provide additional environment variables: HWCI_TEST_SCRIPT="VAR1=VAL1 VAR2=VAL2 /path/to/script" Additionally, add the missing execute permission flags to gtest-runner.sh script. Signed-off-by: Cristian Ciocaltea Reviewed-by: Guilherme Gallo Reviewed-by: Tomeu Vizoso Part-of: --- .gitlab-ci/common/init-stage2.sh | 2 +- .gitlab-ci/gtest-runner.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 .gitlab-ci/gtest-runner.sh diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index baf3fc330d6..1619a303ec7 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -91,7 +91,7 @@ if [ -n "$HWCI_START_XORG" ]; then export DISPLAY=:0 fi -sh "$HWCI_TEST_SCRIPT" && RESULT=pass || RESULT=fail +sh -c "$HWCI_TEST_SCRIPT" && RESULT=pass || RESULT=fail # Let's make sure the results are always stored in current working directory mv -f ${CI_PROJECT_DIR}/results ./ 2>/dev/null || true diff --git a/.gitlab-ci/gtest-runner.sh b/.gitlab-ci/gtest-runner.sh old mode 100644 new mode 100755