mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
iotests: check: return 1 on failure
We should indicate failure by exit code, not only output.
Reported-by: Peter Maydell
Fixes: f203080bbd
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210201085041.3079-1-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ca502ca60d
commit
3ae50942f1
2 changed files with 7 additions and 2 deletions
|
@ -318,7 +318,7 @@ class TestRunner(ContextManager['TestRunner']):
|
|||
|
||||
return res
|
||||
|
||||
def run_tests(self, tests: List[str]) -> None:
|
||||
def run_tests(self, tests: List[str]) -> bool:
|
||||
n_run = 0
|
||||
failed = []
|
||||
notrun = []
|
||||
|
@ -363,5 +363,7 @@ class TestRunner(ContextManager['TestRunner']):
|
|||
if failed:
|
||||
print('Failures:', ' '.join(failed))
|
||||
print(f'Failed {len(failed)} of {n_run} iotests')
|
||||
return False
|
||||
else:
|
||||
print(f'Passed all {n_run} iotests')
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue