mtest: add complete_skip to TestRun
This commit is contained in:
parent
c544529faa
commit
1f5634f15d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue