From 31944f33d62d7c606968bd30a4d4c80df7f0037c Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Thu, 8 Oct 2015 15:20:37 +0300 Subject: [PATCH] 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 --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index a45759970..b5a707ce0 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -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)