ktest: Output something easy to parse for failure or success

Have a easy way to parse the log file for success or failure.

 KTEST RESULT: ...

Suggested-by: Tim Bird <tim.bird@am.sony.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
Steven Rostedt 2010-11-08 16:49:25 -05:00 committed by Steven Rostedt
parent 21a9679fea
commit 7a849cd93a

View file

@ -378,7 +378,7 @@ sub fail {
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "**** Failed: ", @_, " ****\n";
doprint "KTEST RESULT: TEST $i Failed: ", @_, "\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
doprint "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
@ -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";