Skip to content

Commit

Permalink
Only output relevant data in TestCase.dump()
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Dec 12, 2023
1 parent eede0ae commit 553882f
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions grizzly/common/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,23 @@ def dump(self, dst_path, include_details=False):
if include_details:
assert isinstance(self.env_vars, dict)
info = {
"adapter": self.adapter_name,
"duration": self.duration,
"env": self.env_vars,
"hang": self.hang,
"https": self.https,
"input": Path(self.input_fname).name if self.input_fname else None,
"target": self.entry_point,
"timestamp": self.timestamp,
"version": self.version,
}
if self.adapter_name:
info["adapter"] = self.adapter_name
if self.duration:
info["duration"] = self.duration
if self.env_vars:
info["env"] = self.env_vars
if self.hang:
info["hang"] = self.hang
if self.input_fname:
info["input"] = Path(self.input_fname).name
if self.timestamp:
info["timestamp"] = self.timestamp
if self.version:
info["version"] = self.version
# save target assets and update meta data
if self.assets:
assert isinstance(self.assets, dict)
Expand Down

0 comments on commit 553882f

Please sign in to comment.