aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-01-29 10:06:07 -0500
committerSteven Rostedt <rostedt@goodmis.org>2015-02-02 10:43:30 -0500
commit4bf6e1fc992a19e3a1ce7798df969817467c4360 (patch)
tree46e045dd65a2cd94d90883f8aacda11eb02a9cf8
parent9d2f7f051b8917305ea20ed79ff08254ea73f26d (diff)
ktest: Print build,install,boot,test times at success and failure
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>
-rwxr-xr-xtools/testing/ktest/ktest.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index ef1d99f3859c..ca20ce2dc8b6 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1643,6 +1643,8 @@ sub fail {
1643 $name = " ($test_name)"; 1643 $name = " ($test_name)";
1644 } 1644 }
1645 1645
1646 print_times;
1647
1646 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; 1648 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
1647 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"; 1649 doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
1648 doprint "KTEST RESULT: TEST $i$name Failed: ", @_, "\n"; 1650 doprint "KTEST RESULT: TEST $i$name Failed: ", @_, "\n";
@@ -2494,6 +2496,8 @@ sub success {
2494 $name = " ($test_name)"; 2496 $name = " ($test_name)";
2495 } 2497 }
2496 2498
2499 print_times;
2500
2497 doprint "\n\n*******************************************\n"; 2501 doprint "\n\n*******************************************\n";
2498 doprint "*******************************************\n"; 2502 doprint "*******************************************\n";
2499 doprint "KTEST RESULT: TEST $i$name SUCCESS!!!! **\n"; 2503 doprint "KTEST RESULT: TEST $i$name SUCCESS!!!! **\n";