ci: enable check app dependency for qemu and linux tests

This commit is contained in:
Fu Hanxi 2023-07-11 15:32:57 +08:00
parent 682e5ae450
commit 537bd3efec
No known key found for this signature in database
GPG Key ID: BD3B2FAD1B4969D4

View File

@ -301,6 +301,9 @@ test_pytest_qemu:
- .host_test_template - .host_test_template
- .before_script_build_jobs - .before_script_build_jobs
image: $QEMU_IMAGE image: $QEMU_IMAGE
needs:
- job: mr_variables
optional: true # only MR pipelines would have this
artifacts: artifacts:
when: always when: always
paths: paths:
@ -317,6 +320,9 @@ test_pytest_qemu:
--target $IDF_TARGET --target $IDF_TARGET
--pytest-apps --pytest-apps
-m qemu -m qemu
--collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
--modified-components ${MR_MODIFIED_COMPONENTS}
--modified-files ${MR_MODIFIED_FILES}
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases - retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
- pytest - pytest
--target $IDF_TARGET --target $IDF_TARGET
@ -324,11 +330,15 @@ test_pytest_qemu:
--embedded-services idf,qemu --embedded-services idf,qemu
--junitxml=XUNIT_RESULT.xml --junitxml=XUNIT_RESULT.xml
--known-failure-cases-file known_failure_cases/known_failure_cases.txt --known-failure-cases-file known_failure_cases/known_failure_cases.txt
--app-info-filepattern \"list_job_*.txt\"
test_pytest_linux: test_pytest_linux:
extends: extends:
- .host_test_template - .host_test_template
- .before_script_build_jobs - .before_script_build_jobs
needs:
- job: mr_variables
optional: true # only MR pipelines would have this
artifacts: artifacts:
when: always when: always
paths: paths:
@ -342,6 +352,13 @@ test_pytest_linux:
--target linux --target linux
--pytest-apps --pytest-apps
-m host_test -m host_test
--collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
--modified-components ${MR_MODIFIED_COMPONENTS}
--modified-files ${MR_MODIFIED_FILES}
- retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases - retry_failed git clone $KNOWN_FAILURE_CASES_REPO known_failure_cases
- run_cmd pytest --target linux -m host_test --junitxml=XUNIT_RESULT.xml - run_cmd pytest
--target linux
-m host_test
--junitxml=XUNIT_RESULT.xml
--known-failure-cases-file known_failure_cases/known_failure_cases.txt --known-failure-cases-file known_failure_cases/known_failure_cases.txt
--app-info-filepattern \"list_job_*.txt\"