aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-01-15 23:46:12 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-02-01 09:05:26 +0100
commit3f3439522c66de4620f36f804bdf16c5d0dc9ce1 (patch)
treea1b9bf93108638ba00b301e11e8cc0a3197711fb /mesonbuild/backend/backends.py
parent689504b8607f11d7a98e2125823ad917dfc49504 (diff)
downloadmeson-3f3439522c66de4620f36f804bdf16c5d0dc9ce1.zip
meson-3f3439522c66de4620f36f804bdf16c5d0dc9ce1.tar.gz
meson-3f3439522c66de4620f36f804bdf16c5d0dc9ce1.tar.bz2
mtest: support for forcibly verbose logging of some tests
Store in TestSerialisation whether a particular test must always be logged verbosely. This is particularly useful for long-running tests or when a single Meson test() is wrapping an external test harness. In this case, TAP can be used by the external harness and Meson will log each subtest as it runs. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index eb4d03f..8729c8e 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -226,6 +226,7 @@ class TestSerialisation:
cmd_is_built: bool
depends: T.List[str]
version: str
+ verbose: bool
def __post_init__(self) -> None:
if self.exe_wrapper is not None:
@@ -1148,7 +1149,8 @@ class Backend:
extra_paths, t.protocol, t.priority,
isinstance(exe, build.Executable),
[x.get_id() for x in depends],
- self.environment.coredata.version)
+ self.environment.coredata.version,
+ False)
arr.append(ts)
return arr