Skip to content

Commit

Permalink
Update test/k4FWCoreTest/options/CheckOutputFiles.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andre Sailer <andre.philippe.sailer@cern.ch>
  • Loading branch information
m-fila and andresailer authored Aug 30, 2024
1 parent 1e9cfe8 commit 953aeef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/k4FWCoreTest/options/CheckOutputFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def check_metadata(filename, keys, values):
podio_reader = podio.root_io.Reader(filename)
metadata = podio_reader.get("metadata")[0]
for key, value in zip(keys, values):
if metadata.get_parameter(key) != value:
if (metaval := metadata.get_parameter(key)) != value:
raise RuntimeError(
f"Metadata parameter {key} does not match the expected value, got {metadata.get_parameter(key)} but expected {value}"
f"Metadata parameter {key} does not match the expected value, got {metaval} but expected {value}"
)


Expand Down

0 comments on commit 953aeef

Please sign in to comment.