summaryrefslogtreecommitdiff
path: root/tools/testing/ktest/ktest.pl
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2020-07-01 15:29:06 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2020-07-01 15:29:06 -0400
commiteefb9d2b8c6a781dd1026b18e37b4bcb50cff440 (patch)
treeaa343830e125fa1b8613e1df056f2891a21d7466 /tools/testing/ktest/ktest.pl
parentd6bc29d987336927ff97219d5f661389f33f8f11 (diff)
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) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-xtools/testing/ktest/ktest.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index f20a81bb3abe..e90e2e7cb72c 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -11,6 +11,7 @@ use File::Path qw(mkpath);
use File::Copy qw(cp);
use FileHandle;
use FindBin;
+use IO::Handle;
my $VERSION = "0.2";
@@ -4091,6 +4092,7 @@ if (defined($opt{"LOG_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";