From: Yann E. MORIN Date: Sun, 6 Sep 2020 20:12:26 +0000 (+0200) Subject: gitlab-ci: handle single runtime test in script X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b7873bc827759709ec2aea53ab8c355d8b4e1ee;p=buildroot.git gitlab-ci: handle single runtime test in script Signed-off-by: Yann E. MORIN Cc: Romain Naour Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Reviewed-by: Romain Naour Signed-off-by: Yann E. MORIN --- diff --git a/support/misc/gitlab-ci.yml.in b/support/misc/gitlab-ci.yml.in index 8a94b872f3..0f93d272be 100644 --- a/support/misc/gitlab-ci.yml.in +++ b/support/misc/gitlab-ci.yml.in @@ -82,15 +82,6 @@ check-package: - test-output/*.log - test-output/*/.config - test-output/*/images/* - -.runtime_test: - extends: .runtime_test_base before_script: - TEST_CASE_NAME=${CI_JOB_NAME} -one-runtime_test: - extends: .runtime_test_base - rules: - - if: '$CI_COMMIT_REF_NAME =~ /^.*-tests\..*$/' - before_script: - - TEST_CASE_NAME=$(echo ${CI_COMMIT_REF_NAME} | sed -e 's,^.*-,,g') diff --git a/support/scripts/generate-gitlab-ci-yml b/support/scripts/generate-gitlab-ci-yml index 39e0fc7283..25fecf3715 100755 --- a/support/scripts/generate-gitlab-ci-yml +++ b/support/scripts/generate-gitlab-ci-yml @@ -78,7 +78,13 @@ gen_tests() { fi case "${CI_COMMIT_REF_NAME}" in # For the branch or tag name named *-runtime-tests, create a pipeline. - (*-runtime-tests) run_tests=true;; + (*-runtime-tests) + run_tests=true + ;; + (*-tests.*) + tests=( "${CI_COMMIT_REF_NAME##*-}" ) + run_tests=true + ;; esac if ${run_tests}; then