Skip to content

Commit eefb9d2

Browse files
committed
ktest.pl: Turn off buffering to the log file
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) <[email protected]>
1 parent d6bc29d commit eefb9d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use File::Copy qw(cp);
1212
use FileHandle;
1313
use FindBin;
14+
use IO::Handle;
1415

1516
my $VERSION = "0.2";
1617

@@ -4091,6 +4092,7 @@ sub make_warnings_file {
40914092
unlink $opt{"LOG_FILE"};
40924093
}
40934094
open(LOG, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}";
4095+
LOG->autoflush(1);
40944096
}
40954097

40964098
doprint "\n\nSTARTING AUTOMATED TESTS\n\n";

0 commit comments

Comments
 (0)