ktest: Output something easy to parse for failure or success
authorSteven Rostedt <srostedt@redhat.com>
Mon, 8 Nov 2010 21:49:25 +0000 (16:49 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 18 Nov 2010 16:23:11 +0000 (11:23 -0500)
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>
tools/testing/ktest/ktest.pl

index 962c0f773e20112f54d0ad63513db7a29d0d05e2..e0e5935e94c8427e9110f48b8ec0521f297fc516 100755 (executable)
@@ -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";