Skip to content

Commit 2f059db

Browse files
committed
ktest.pl: Always show log file location if defined even on success
If a log file is defined and the test were to error, a print statement is made that shows the user where the log file is to examine it further. But this is not done if the test were to succeed. I find it annoying that it does not show where the log file is on success, as I run several different tests that place their log files in various locations, and even though the test pass, there's things I want to look at in the log file (like warnings). It is much easier to find where the log file is, if it is displayed at the end of a test. Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 9dce29e commit 2f059db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4441,6 +4441,10 @@ sub cancel_test {
44414441
}
44424442

44434443

4444+
if (defined($opt{"LOG_FILE"})) {
4445+
print "\n See $opt{LOG_FILE} for the record of results.\n";
4446+
}
4447+
44444448
doprint "\n $successes of $opt{NUM_TESTS} tests were successful\n\n";
44454449

44464450
if ($email_when_finished) {

0 commit comments

Comments
 (0)