@@ -297,22 +297,20 @@ test_pytest_qemu:
297297 INSTALL_EXTRA_TOOLS : " qemu-riscv32"
298298 IDF_TOOLCHAIN : [gcc, clang]
299299 script :
300- - run_cmd python tools/ci/ci_build_apps.py . -v
300+ - run_cmd idf-ci build run
301+ --build-system cmake
301302 --target $IDF_TARGET
302- --pytest-apps
303+ --only-test-related
303304 -m qemu
304- --collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
305- --modified-components ${MR_MODIFIED_COMPONENTS}
306305 --modified-files ${MR_MODIFIED_FILES}
307- - python tools/ci/get_known_failure_cases_file.py
306+ - run_cmd idf-ci gitlab download-known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
308307 - run_cmd pytest
309308 --target $IDF_TARGET
310309 --log-cli-level DEBUG
311310 -m qemu
312311 --embedded-services idf,qemu
313312 --junitxml=XUNIT_RESULT.xml
314313 --ignore-result-files ${KNOWN_FAILURE_CASES_FILE_NAME}
315- --app-info-filepattern \"list_job_*.txt\"
316314 --qemu-extra-args \"-global driver=timer.$IDF_TARGET.timg,property=wdt_disable,value=true\"
317315
318316test_pytest_linux :
@@ -327,21 +325,18 @@ test_pytest_linux:
327325 reports :
328326 junit : XUNIT_RESULT.xml
329327 script :
330- - run_cmd python tools/ci/ci_build_apps.py components examples tools/test_apps -v
328+ - run_cmd idf-ci build run
329+ --build-system cmake
330+ -p components -p examples -p tools/test_apps
331331 --target linux
332- --pytest-apps
333- -m host_test
334- --collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
335- --modified-components ${MR_MODIFIED_COMPONENTS}
332+ --only-test-related
336333 --modified-files ${MR_MODIFIED_FILES}
337- - python tools/ci/get_known_failure_cases_file.py
334+ - run_cmd idf-ci gitlab download-known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
338335 - run_cmd pytest
339336 --target linux
340- -m host_test
341337 --embedded-services idf
342338 --junitxml=XUNIT_RESULT.xml
343339 --ignore-result-files ${KNOWN_FAILURE_CASES_FILE_NAME}
344- --app-info-filepattern \"list_job_*.txt\"
345340
346341test_pytest_macos :
347342 extends :
@@ -358,41 +353,24 @@ test_pytest_macos:
358353 junit : XUNIT_RESULT.xml
359354 variables :
360355 PYENV_VERSION : " 3.9"
361- PYTEST_IGNORE_COLLECT_IMPORT_ERROR : " 1"
362356 # Workaround for a bug in Parallels executor where CI_PROJECT_DIR is not an absolute path,
363357 # but a relative path to the build directory (builds/espressif/esp-idf instead of ~/builds/espressif/esp-idf.
364358 # GitLab sets the project dir to this template `<builds_dir>/<namespace>/<project_name>`
365359 IDF_PATH : " /Users/espressif/builds/espressif/esp-idf"
366360 script :
367- - run_cmd python tools/ci/ci_build_apps.py components examples tools/test_apps -v
361+ - run_cmd idf-ci build run
362+ -p components -p examples -p tools/test_apps
363+ --build-system cmake
368364 --target linux
369- --pytest-apps
370- -m \"host_test and macos\"
371- --collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
372- --modified-components ${MR_MODIFIED_COMPONENTS}
365+ --only-test-related
366+ -m macos
373367 --modified-files ${MR_MODIFIED_FILES}
374- - python tools/ci/get_known_failure_cases_file.py
368+ - run_cmd idf-ci gitlab download-known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
375369 - run_cmd pytest
376370 --target linux
377- -m \"host_test and macos\"
371+ -m macos
378372 --junitxml=XUNIT_RESULT.xml
379373 --ignore-result-files ${KNOWN_FAILURE_CASES_FILE_NAME}
380- --app-info-filepattern \"list_job_*.txt\"
381-
382- test_idf_pytest_plugin :
383- extends :
384- - .host_test_template
385- - .rules:patterns:idf-pytest-plugin
386- variables :
387- SUBMODULES_TO_FETCH : " none"
388- artifacts :
389- reports :
390- junit : XUNIT_RESULT.xml
391- script :
392- - cd ${IDF_PATH}/tools/ci/dynamic_pipelines/tests/test_report_generator
393- - python -m unittest test_report_generator.py
394- - cd ${IDF_PATH}/tools/ci/idf_pytest
395- - pytest --junitxml=${CI_PROJECT_DIR}/XUNIT_RESULT.xml
396374
397375test_idf_build_apps_load_soc_caps :
398376 extends : .host_test_template
0 commit comments