[CRIU] [PATCH 3/5] zdtm.py: Print "test FAIL" early
    Pavel Emelyanov 
    xemul at parallels.com
       
    Thu Oct  8 05:20:37 PDT 2015
    
    
  
In case t.kill() raises an exception (sometimes it can) it becomes unclear
what's going on.
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
diff --git a/test/zdtm.py b/test/zdtm.py
index 6eebc5f..fa5e429 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -411,9 +422,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)
    
    
More information about the CRIU
mailing list