fix: apps empty list is not None

This commit is contained in:
igor.udot 2024-07-19 12:28:32 +08:00
parent 7042068519
commit 5c23314da1
2 changed files with 7 additions and 7 deletions

View File

@ -314,8 +314,8 @@ test_pytest_qemu:
--pytest-apps
-m qemu
--collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
# --modified-components ${MR_MODIFIED_COMPONENTS} will be fixed with IDFCI-2270
# --modified-files ${MR_MODIFIED_FILES}
--modified-components ${MR_MODIFIED_COMPONENTS}
--modified-files ${MR_MODIFIED_FILES}
- python tools/ci/get_known_failure_cases_file.py
- run_cmd pytest
--target $IDF_TARGET
@ -344,8 +344,8 @@ test_pytest_linux:
--pytest-apps
-m host_test
--collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
# --modified-components ${MR_MODIFIED_COMPONENTS} will be fixed with IDFCI-2270
# --modified-files ${MR_MODIFIED_FILES}
--modified-components ${MR_MODIFIED_COMPONENTS}
--modified-files ${MR_MODIFIED_FILES}
- python tools/ci/get_known_failure_cases_file.py
- run_cmd pytest
--target linux
@ -376,8 +376,8 @@ test_pytest_macos:
--pytest-apps
-m \"host_test and macos_shell\"
--collect-app-info "list_job_${CI_JOB_NAME_SLUG}.txt"
# --modified-components ${MR_MODIFIED_COMPONENTS} will be fixed with IDFCI-2270
# --modified-files ${MR_MODIFIED_FILES}
--modified-components ${MR_MODIFIED_COMPONENTS}
--modified-files ${MR_MODIFIED_FILES}
- python tools/ci/get_known_failure_cases_file.py
- run_cmd pytest
--target linux

View File

@ -82,7 +82,7 @@ class IdfPytestEmbedded:
self.apps_list = (
[os.path.join(idf_relpath(app.app_dir), app.build_dir) for app in apps if app.build_status == BuildStatus.SUCCESS]
if apps
if apps is not None
else None
)