Skip to content

Commit

Permalink
ktest: Print logfile name on failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Mar 8, 2011
1 parent a5abba9 commit f80802c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ sub dodie {
`$power_off`;
}

if (defined($opt{"LOG_FILE"})) {
print " See $opt{LOG_FILE} for more info.\n";
}

die @_, "\n";
}

Expand Down

0 comments on commit f80802c

Please sign in to comment.