Commit d3318720 authored by Ben Gamari's avatar Ben Gamari 🐢

ghc-perf: Ensure output directory exists

parent 3d80ace6
......@@ -186,6 +186,7 @@ def main() -> None:
stdin=Path(args.stdin.name) if args.stdin else None)
new_metrics = old_metrics + metrics
output_path.parent.mkdir(parents=True, exist_ok=True)
if output_path.suffix == '.json':
new_metrics.write_json(output_path.open('w'))
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment