diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-03-07 13:18:47 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-03-08 09:52:58 -0500 |
commit | f80802cb1fbd7f441dd1d04db77d314adb7ccb37 (patch) | |
tree | fea4c68698a178961c622d8ee740318af02fe7a3 /tools | |
parent | a5abba989deceb731047425812d268daf7536575 (diff) |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/ktest/ktest.pl | 4 |
1 files changed, 4 insertions, 0 deletions
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 { | |||
462 | `$power_off`; | 462 | `$power_off`; |
463 | } | 463 | } |
464 | 464 | ||
465 | if (defined($opt{"LOG_FILE"})) { | ||
466 | print " See $opt{LOG_FILE} for more info.\n"; | ||
467 | } | ||
468 | |||
465 | die @_, "\n"; | 469 | die @_, "\n"; |
466 | } | 470 | } |
467 | 471 | ||