Skip to content

Commit

Permalink
ktest.pl: Turn off buffering to the log file
Browse files Browse the repository at this point in the history
The log file should be up to date to whatever is happening in ktest.
Disable buffering to the LOG output file handle.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt (VMware) committed Jul 1, 2020
1 parent d6bc29d commit eefb9d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use File::Copy qw(cp);
use FileHandle;
use FindBin;
use IO::Handle;

my $VERSION = "0.2";

Expand Down Expand Up @@ -4091,6 +4092,7 @@ sub make_warnings_file {
unlink $opt{"LOG_FILE"};
}
open(LOG, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}";
LOG->autoflush(1);
}

doprint "\n\nSTARTING AUTOMATED TESTS\n\n";
Expand Down

0 comments on commit eefb9d2

Please sign in to comment.