mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/ci_test_result_always_fail' into 'master'
CI: fix bug that test result always fail CI test report jobs always fails because of 2 bugs: 1. merge/rebase error: the variable used to log test result is modified during merge/rebase 2. path of unit test module definition file is not correct See merge request !454
This commit is contained in:
commit
92b9ed8342
@ -163,7 +163,7 @@ test_report:
|
|||||||
LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
|
LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
|
||||||
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test"
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test"
|
||||||
REPORT_PATH: "$CI_PROJECT_DIR/CI_Test_Report"
|
REPORT_PATH: "$CI_PROJECT_DIR/CI_Test_Report"
|
||||||
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/components/idf_test/unit_test/ModuleDefinition.yml"
|
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/tools/unit-test-app/ModuleDefinition.yml"
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
@ -184,7 +184,8 @@ test_report:
|
|||||||
- git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git
|
- git clone $GITLAB_SSH_SERVER/yinling/auto_test_script.git
|
||||||
- cd auto_test_script
|
- cd auto_test_script
|
||||||
# generate report
|
# generate report
|
||||||
- python CITestReport.py -l $LOG_PATH -t $TEST_CASE_FILE_PATH -p $REPORT_PATH -r $RESULT_PATH -a $ARTIFACTS_PATH -m $MODULE_UPDATE_FILE || FAIL=True
|
- TEST_RESULT=Pass
|
||||||
|
- python CITestReport.py -l $LOG_PATH -t $TEST_CASE_FILE_PATH -p $REPORT_PATH -r $RESULT_PATH -a $ARTIFACTS_PATH -m $MODULE_UPDATE_FILE || TEST_RESULT=Fail
|
||||||
# commit to CI-test-result project
|
# commit to CI-test-result project
|
||||||
- git clone $GITLAB_SSH_SERVER/qa/CI-test-result.git
|
- git clone $GITLAB_SSH_SERVER/qa/CI-test-result.git
|
||||||
- rm -rf CI-test-result/RawData/$RESULT_PATH
|
- rm -rf CI-test-result/RawData/$RESULT_PATH
|
||||||
@ -328,7 +329,7 @@ deploy_docs:
|
|||||||
LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
|
LOG_PATH: "$CI_PROJECT_DIR/$CI_BUILD_REF"
|
||||||
APP_NAME: "ut"
|
APP_NAME: "ut"
|
||||||
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test/unit_test"
|
TEST_CASE_FILE_PATH: "$CI_PROJECT_DIR/components/idf_test/unit_test"
|
||||||
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/components/idf_test/unit_test/ModuleDefinition.yml"
|
MODULE_UPDATE_FILE: "$CI_PROJECT_DIR/tools/unit-test-app/ModuleDefinition.yml"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- build_esp_idf_tests
|
- build_esp_idf_tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user