Skip to content

Commit 4bf6e1f

Browse files
committed
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 <[email protected]>
1 parent 9d2f7f0 commit 4bf6e1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,8 @@ sub fail {
16431643
$name = " ($test_name)";
16441644
}
16451645

1646+
print_times;
1647+
16461648
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
16471649
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
16481650
doprint "KTEST RESULT: TEST $i$name Failed: ", @_, "\n";
@@ -2494,6 +2496,8 @@ sub success {
24942496
$name = " ($test_name)";
24952497
}
24962498

2499+
print_times;
2500+
24972501
doprint "\n\n*******************************************\n";
24982502
doprint "*******************************************\n";
24992503
doprint "KTEST RESULT: TEST $i$name SUCCESS!!!! **\n";

0 commit comments

Comments
 (0)