ci: fix check-build-test-rules exclude-dir

This commit is contained in:
Fu Hanxi
2026-03-18 11:38:14 +08:00
parent 4307880020
commit 9f7ec2626e
2 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ repos:
name: Check if all apps readme files match given .build-test-rules.yml files. Modify the supported target tables
entry: tools/ci/check_build_test_rules.py check-readmes
language: python
files: 'tools/test_apps/.+|examples/.+|components/.+|tools/idf_py_actions/constants.py|tools/ci/check_build_test_rules.py'
files: 'tools/.+|examples/.+|components/.+'
require_serial: true
additional_dependencies:
- PyYAML == 5.3.1
+3 -5
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import argparse
import os
@@ -336,14 +336,12 @@ if __name__ == '__main__':
if check_all:
check_dirs = {IDF_PATH}
_exclude_dirs = [
os.path.join(IDF_PATH, 'tools', 'test_build_system', 'build_test_app'),
os.path.join(IDF_PATH, 'tools', 'test_build_system', 'buildv2_test_app'),
os.path.join(IDF_PATH, 'tools', 'test_build_system'),
os.path.join(IDF_PATH, 'tools', 'templates', 'sample_project'),
os.path.join(IDF_PATH, 'tools', 'cmakev2', 'test'),
]
else:
_exclude_dirs = [os.path.join(IDF_PATH, 'tools', 'templates', 'sample_project')]
_bypass_targets: list[str] = []
if arg.config: