mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -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
|
@ -140,4 +140,7 @@ if __name__ == '__main__':
|
|||
else:
|
||||
with TestRunner(env, makecheck=args.makecheck,
|
||||
color=args.color) as tr:
|
||||
tr.run_tests([os.path.join(env.source_iotests, t) for t in tests])
|
||||
paths = [os.path.join(env.source_iotests, t) for t in tests]
|
||||
ok = tr.run_tests(paths)
|
||||
if not ok:
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue