Skip to content

Commit

Permalink
write line separator to output properly formatted jsonlines
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed May 16, 2019
1 parent 8b152b4 commit de8389d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev/archery/archery/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,12 @@ def benchmark_diff(ctx, src, preserve, suite_filter, benchmark_filter,

regressions = 0
runner_comp = RunnerComparator(runner_cont, runner_base, threshold)

# TODO(kszucs): test that the output is properly formatted jsonlines
for comparator in runner_comp.comparisons:
regressions += comparator.regression
json.dump(comparator, output, cls=JsonEncoder)
output.write('\n')

sys.exit(regressions)

Expand Down

0 comments on commit de8389d

Please sign in to comment.