Selaa lähdekoodia

ktest: Print logfile name on failure

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>
Steven Rostedt 14 vuotta sitten
vanhempi
commit
f80802cb1f
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      tools/testing/ktest/ktest.pl

+ 4 - 0
tools/testing/ktest/ktest.pl

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