aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/meson_benchmark.py
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2016-02-26 21:49:50 +0200
committerHemmo Nieminen <hemmo.nieminen@iki.fi>2016-04-01 00:51:12 +0300
commitf2868420ca13c49ba25d00cd75b490d1629246a2 (patch)
tree66502d866e4c26bd07968e8f33936d407eabc960 /mesonbuild/scripts/meson_benchmark.py
parent457ecb6be7e7cdf48b32441053d3d10456396939 (diff)
downloadmeson-f2868420ca13c49ba25d00cd75b490d1629246a2.zip
meson-f2868420ca13c49ba25d00cd75b490d1629246a2.tar.gz
meson-f2868420ca13c49ba25d00cd75b490d1629246a2.tar.bz2
meson_test: Add support for --no-stdsplit option.
Diffstat (limited to 'mesonbuild/scripts/meson_benchmark.py')
-rw-r--r--mesonbuild/scripts/meson_benchmark.py3
1 files changed, 2 insertions, 1 deletions
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')