Selaa lähdekoodia

ci: exclude checking manifest files under managed_components

Fu Hanxi 2 vuotta sitten
vanhempi
sitoutus
c8cddaee8a
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  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')]
     config_files = [str(p) for p in Path(IDF_PATH).glob('**/.build-test-rules.yml')]
     for file in config_files:
     for file in config_files:
+        if 'managed_components' in Path(file).parts:
+            continue
+
         with open(file) as fr:
         with open(file) as fr:
-            configs = yaml.load(fr)
+            configs = yaml.safe_load(fr)
             for path in configs.keys():
             for path in configs.keys():
                 if path.startswith('.'):
                 if path.startswith('.'):
                     continue
                     continue