From de8389d1e97a9b23b53fcabb8ac9aed0e4ee17f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Sz=C5=B1cs?= Date: Thu, 16 May 2019 08:58:42 +0200 Subject: [PATCH] write line separator to output properly formatted jsonlines --- dev/archery/archery/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev/archery/archery/cli.py b/dev/archery/archery/cli.py index b7b077ab87c7e..0178d58a03f68 100644 --- a/dev/archery/archery/cli.py +++ b/dev/archery/archery/cli.py @@ -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)