فهرست منبع

ci: exclude checking manifest files under managed_components

Fu Hanxi 2 سال پیش
والد
کامیت
c8cddaee8a
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      tools/ci/check_build_test_rules.py

+ 4 - 1
tools/ci/check_build_test_rules.py

@@ -418,8 +418,11 @@ def check_exist() -> None:
 
     config_files = [str(p) for p in Path(IDF_PATH).glob('**/.build-test-rules.yml')]
     for file in config_files:
+        if 'managed_components' in Path(file).parts:
+            continue
+
         with open(file) as fr:
-            configs = yaml.load(fr)
+            configs = yaml.safe_load(fr)
             for path in configs.keys():
                 if path.startswith('.'):
                     continue