From f2868420ca13c49ba25d00cd75b490d1629246a2 Mon Sep 17 00:00:00 2001 From: Hemmo Nieminen Date: Fri, 26 Feb 2016 21:49:50 +0200 Subject: meson_test: Add support for --no-stdsplit option. --- mesonbuild/scripts/meson_benchmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/scripts/meson_benchmark.py') diff --git a/mesonbuild/scripts/meson_benchmark.py b/mesonbuild/scripts/meson_benchmark.py index 26f1f95..d1107b6 100644 --- a/mesonbuild/scripts/meson_benchmark.py +++ b/mesonbuild/scripts/meson_benchmark.py @@ -39,9 +39,10 @@ def print_json_log(jsonlogfile, rawruns, test_name, i): for r in rawruns: runobj = {'duration': r.duration, 'stdout': r.stdo, - 'stderr': r.stde, 'returncode' : r.returncode, 'duration' : r.duration} + if r.stde: + runobj['stderr'] = r.stde runs.append(runobj) jsonobj['runs'] = runs jsonlogfile.write(json.dumps(jsonobj) + '\n') -- cgit v1.1