From: Steven Rostedt Date: Mon, 7 Mar 2011 18:18:47 +0000 (-0500) Subject: ktest: Print logfile name on failure X-Git-Tag: firefly_0821_release~7613^2~2124^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f80802cb1fbd7f441dd1d04db77d314adb7ccb37;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index e1c62eeb88f5..3e3615a7d968 100755 --- a/tools/testing/ktest/ktest.pl +++ b/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"; }