Auto-assign missing harness title if reading from file

This commit is contained in:
Daniel Rojas 2021-10-16 18:49:18 +02:00 committed by Laurier Loiselle
parent c38305b3a5
commit 81f955457d
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

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 ====================================================