Commit 31944f33 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7cbb5e5a
...@@ -411,9 +411,9 @@ def do_run_test(tname, tdesc, flavs, opts): ...@@ -411,9 +411,9 @@ def do_run_test(tname, tdesc, flavs, opts):
check_visible_state(t, s) check_visible_state(t, s)
t.stop() t.stop()
except test_fail_exc as e: except test_fail_exc as e:
print "Test %s FAIL at %s" % (tname, e.step)
t.print_output() t.print_output()
t.kill() t.kill()
print "Test %s FAIL at %s" % (tname, e.step)
# This exit does two things -- exits from subprocess and # This exit does two things -- exits from subprocess and
# aborts the main script execution on the 1st error met # aborts the main script execution on the 1st error met
sys.exit(1) sys.exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment