]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ktest: Print logfile name on failure
authorSteven Rostedt <srostedt@redhat.com>
Mon, 7 Mar 2011 18:18:47 +0000 (13:18 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Mar 2011 14:52:58 +0000 (09:52 -0500)
If the test fails and a logfile was specified. Print the name to
let the user know where to look for more information on the
failure.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl

index e1c62eeb88f5f845640b49ddb2fb00313039928e..3e3615a7d968dfc13e1c79f9370883688d929e9b 100755 (executable)
@@ -462,6 +462,10 @@ sub dodie {
        `$power_off`;
     }
 
+    if (defined($opt{"LOG_FILE"})) {
+       print " See $opt{LOG_FILE} for more info.\n";
+    }
+
     die @_, "\n";
 }