Skip to content

Commit

Permalink
ktest: Output something easy to parse for failure or success
Browse files Browse the repository at this point in the history
Have a easy way to parse the log file for success or failure.

 KTEST RESULT: ...

Suggested-by: Tim Bird <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
  • Loading branch information
Steven Rostedt authored and rostedt committed Nov 18, 2010
1 parent 21a9679 commit 7a849cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ sub fail {

doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "**** Failed: ", @_, " ****\n";
doprint "KTEST RESULT: TEST $i Failed: ", @_, "\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";

Expand Down Expand Up @@ -782,7 +782,7 @@ sub success {

doprint "\n\n*******************************************\n";
doprint "*******************************************\n";
doprint "** TEST $i SUCCESS!!!! **\n";
doprint "KTEST RESULT: TEST $i SUCCESS!!!! **\n";
doprint "*******************************************\n";
doprint "*******************************************\n";

Expand Down

0 comments on commit 7a849cd

Please sign in to comment.