From f4d2b2a06001807262cf4f349c5cc373a84fcd44 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 5 May 2025 16:00:03 +0200 Subject: [PATCH] ci/ci-tron: add check that the required variables are set Part-of: --- .gitlab-ci/test/gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index 481be545993..3ed15d00111 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -424,6 +424,14 @@ yaml-toml-shell-py-test: eval "$S3_JWT_FILE_SCRIPT" + for var in CI_TRON_DUT_SETUP_TAGS; do + if [[ -z "$(eval echo \${$var:-})" ]]; then + echo "The required variable '$var' is missing" + exit 1 + fi + done + + # Open a section that will be closed by b2c echo -e "\n\e[0Ksection_start:`date +%s`:b2c_kernel_boot[collapsed=true]\r\e[0K\e[0;36m[$(cut -d ' ' -f1 /proc/uptime)]: Submitting the CI-tron job and booting the DUT\e[0m\n"