summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/meson_benchmark.py
diff options
context:
space:
mode:
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 26f1f95a1..d1107b609 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')