Skip to content

Commit

Permalink
ktest: Print build,install,boot,test times at success and failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt (Red Hat) committed Feb 2, 2015
1 parent 9d2f7f0 commit 4bf6e1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,8 @@ sub fail {
$name = " ($test_name)";
}

print_times;

doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "KTEST RESULT: TEST $i$name Failed: ", @_, "\n";
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 4bf6e1f

Please sign in to comment.