From 78da1ef11fd2b25946d252565c2edb6199c9a9d8 Mon Sep 17 00:00:00 2001 From: mayank-dev-15 Date: Tue, 23 Jun 2026 20:37:14 +0530 Subject: [PATCH] mtest: warn on TAP unknown lines instead of erroring The TAP spec says unknown lines must not be treated as errors. Meson was marking them as ERROR for version <= 13, which caused tests to fail when the output contained non-TAP lines. Now they are warnings, matching the spec. The test still passes if all actual test results are OK. Fixes #6810 --- mesonbuild/mtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 6ccbe5cb2b69..1669e2f23ebd 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1187,7 +1187,7 @@ async def parse(self, harness: 'TestHarness', lines: T.AsyncIterator[str]) -> No self.warnings.append('Unknown TAP output lines have been ignored. Please open a feature request to\n' 'implement them, or prefix them with a # if they are not TAP syntax.') else: - self.warnings.append(str(mlog.red('ERROR')) + ': Unknown TAP output lines for a supported TAP version.\n' + self.warnings.append(str(mlog.red('WARNING')) + ': Unknown TAP output lines for a supported TAP version.\n' 'This is probably a bug in the test; if they are not TAP syntax, prefix them with a #') if all(t.result is TestResult.SKIP for t in self.results): # This includes the case where self.results is empty