diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-04-06 23:10:20 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-04-06 23:10:20 +0300 |
| commit | cab5ce4fc0eeee6024632cfb3815a7b6e3b70885 (patch) | |
| tree | 70ce279332b2c3730204ffa7dc2e9b01059c5921 /mesonbuild/scripts/meson_benchmark.py | |
| parent | 5d53c6b7415b62f2172129a61770cf38aa3f3c1d (diff) | |
| parent | 3f3fcace3d91da7d2643354e06a4b8d3c7143f86 (diff) | |
| download | meson-cab5ce4fc0eeee6024632cfb3815a7b6e3b70885.tar.gz | |
Merge pull request #438 from trhd/testing_options
New options for controlling test output.
Diffstat (limited to 'mesonbuild/scripts/meson_benchmark.py')
| -rw-r--r-- | mesonbuild/scripts/meson_benchmark.py | 3 |
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') |
