mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
zdtm.py: Print "test FAIL" early
In case t.kill() raises an exception (sometimes it can) it becomes unclear what's going on. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
7cbb5e5a37
commit
31944f33d6
@ -411,9 +411,9 @@ def do_run_test(tname, tdesc, flavs, opts):
|
||||
check_visible_state(t, s)
|
||||
t.stop()
|
||||
except test_fail_exc as e:
|
||||
print "Test %s FAIL at %s" % (tname, e.step)
|
||||
t.print_output()
|
||||
t.kill()
|
||||
print "Test %s FAIL at %s" % (tname, e.step)
|
||||
# This exit does two things -- exits from subprocess and
|
||||
# aborts the main script execution on the 1st error met
|
||||
sys.exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user