diff --git a/tools/ci/config/target-test.yml b/tools/ci/config/target-test.yml index 3bd57d09c..0031c502a 100644 --- a/tools/ci/config/target-test.yml +++ b/tools/ci/config/target-test.yml @@ -162,9 +162,22 @@ example_test_001: example_test_002: extends: .example_test_template image: $CI_DOCKER_REGISTRY/ubuntu-test-env$BOT_DOCKER_IMAGE_TAG + variables: + GIT_SUBMODULE_STRATEGY: normal tags: - ESP32 - Example_ShieldBox_Basic + script: + - *define_config_file_name + # first test if config file exists, if not exist, exit 0 + - test -e $CONFIG_FILE || exit 0 + # clone test env configs + - git clone $TEST_ENV_CONFIG_REPOSITORY + - python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs + - cd $TEST_FW_PATH + # run test + - python Runner.py $TEST_CASE_PATH -c $CONFIG_FILE -e $ENV_FILE + .example_test_003: extends: .example_test_template