Skip to content

Commit 36e34d5

Browse files
committed
ci: Fix validation pipeline for hardware_registry
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 0c1c401 commit 36e34d5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/validate_yaml.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,14 @@ def merge_files(dir="config"):
302302
"""
303303
Merge all yaml files in the config/ directory
304304
"""
305+
# Directories with their own validation (e.g. hardware_registry/)
306+
skip_dirs = {"hardware_registry"}
305307
merged_data = {}
306308
for file in glob.iglob(os.path.join(dir, "**", "*.yaml"), recursive=True):
309+
rel = os.path.relpath(file, dir)
310+
top_dir = rel.split(os.sep)[0]
311+
if top_dir in skip_dirs:
312+
continue
307313
print(f"Merging {file}")
308314
with open(file, "r") as stream:
309315
try:

0 commit comments

Comments
 (0)