2
0
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:
Pavel Emelyanov 2015-10-08 15:20:37 +03:00
parent 7cbb5e5a37
commit 31944f33d6

View File

@ -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)