summaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2025-11-17 23:55:20 -0500
committerEli Schwartz <eschwartz93@gmail.com>2025-11-17 23:58:21 -0500
commit48c5c0a84792131da8f8d2a07c4cc8982811c1b0 (patch)
tree9cac6f3f81a4a4e1d21ea3ccf99335f692199c8b /mesonbuild/mtest.py
parent498e5a6b9f90c2c8cb39fc86817a848c50348a38 (diff)
downloadmeson-48c5c0a84792131da8f8d2a07c4cc8982811c1b0.tar.gz
mtest: add convenience key to testlog.json for "is a failure"
This info is also available from the "result" entry, but requires mapping result types to "would cause a failure, but isn't literally FAIL". It comes in handy for the meson testsuite, too.
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index a299a794f..535703865 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -793,6 +793,7 @@ class JsonLogfileBuilder(TestFileLogger):
'name': result.name,
'stdout': result.stdo,
'result': result.res.value,
+ 'is_fail': result.res.is_bad(),
'starttime': result.starttime,
'duration': result.duration,
'returncode': result.returncode,