From 4d4abf428bd3f9afb00ae97e4510ff46c0e7b7ae Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Fri, 9 Apr 2021 17:14:58 +0800 Subject: [PATCH] ci: add helper info for tests with no config --- .gitlab/ci/target-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab/ci/target-test.yml b/.gitlab/ci/target-test.yml index 7f856c1f19..ee8e0bd7ce 100644 --- a/.gitlab/ci/target-test.yml +++ b/.gitlab/ci/target-test.yml @@ -24,7 +24,8 @@ script: - *define_config_file_name # first test if config file exists, if not exist, exit 0 - - test -e $CONFIG_FILE || exit 0 + - | + { [[ -e $CONFIG_FILE ]]; } || { echo 'No config file found. Consider decreasing the parallel count of this job in ".gitlab/ci/target-test.yml"'; exit 0; } # clone test env configs - retry_failed git clone $TEST_ENV_CONFIG_REPO - python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs