src: wv_harness: only add pn if not already in name

This commit is contained in:
Laurier Loiselle 2023-03-29 12:06:38 -04:00
parent f20e660010
commit 0f06b45c06
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

View File

@ -52,7 +52,7 @@ class Harness:
def name(self) -> str: def name(self) -> str:
pn = self.metadata.get("pn", "") pn = self.metadata.get("pn", "")
output_name = self.metadata["output_name"] output_name = self.metadata["output_name"]
if pn: if pn and pn not in output_name:
return f"{pn}-{output_name}" return f"{pn}-{output_name}"
else: else:
return output_name return output_name