]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
ktest: Print build,install,boot,test times at success and failure
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 29 Jan 2015 15:06:07 +0000 (10:06 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 2 Feb 2015 15:43:30 +0000 (10:43 -0500)
Since both success and failure may shortcut and exit ktest, it is better
to print the status times there too. Once times are printed, the values
for the times are reset, so they will not print more than once.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl

index ef1d99f3859cf01d15ec89b36b2977f68cbac4e3..ca20ce2dc8b685f83346179bd70df9589110d224 100755 (executable)
@@ -1643,6 +1643,8 @@ sub fail {
            $name = " ($test_name)";
        }
 
+       print_times;
+
        doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
        doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
        doprint "KTEST RESULT: TEST $i$name Failed: ", @_, "\n";
@@ -2494,6 +2496,8 @@ sub success {
        $name = " ($test_name)";
     }
 
+    print_times;
+
     doprint "\n\n*******************************************\n";
     doprint     "*******************************************\n";
     doprint     "KTEST RESULT: TEST $i$name SUCCESS!!!!         **\n";