Auto-assign missing harness title if reading from file

This commit is contained in:
Daniel Rojas 2021-10-16 18:49:18 +02:00
parent d19c260940
commit e31ed72655

View File

@ -115,8 +115,8 @@ def parse(
# keep track of auto-generated designators to avoid duplicates
autogenerated_designators = {}
# if "title" not in harness.metadata:
# harness.metadata["title"] = Path(yaml_path).stem
if "title" not in harness.metadata:
harness.metadata["title"] = Path(yaml_file).stem if yaml_file else ""
# add items
# parse YAML input file ====================================================