aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/mtest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index b5c42e7..09df761 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -868,6 +868,9 @@ class TestRun:
self.stde = stde
self.cmd = cmd
+ def complete_skip(self, message: str) -> None:
+ self.complete(GNU_SKIP_RETURNCODE, TestResult.SKIP, message, None, None)
+
def get_log(self) -> str:
res = '--- command ---\n'
if self.cmd is None:
@@ -1091,7 +1094,7 @@ class SingleTestRunner:
self.runobj.start()
if cmd is None:
skip_stdout = 'Not run because can not execute cross compiled binaries.'
- self.runobj.complete(GNU_SKIP_RETURNCODE, TestResult.SKIP, skip_stdout, None, None)
+ self.runobj.complete_skip(skip_stdout)
else:
wrap = TestHarness.get_wrapper(self.options)
await self._run_cmd(wrap + cmd + self.test.cmd_args + self.options.test_args)