From 613b9b613d285121da842d5e391c5a1331657a18 Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Tue, 19 Nov 2019 11:18:59 +0800 Subject: [PATCH] ci: fetch all submodules for iperf example test --- tools/ci/config/target-test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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