ktest.pl: Just open up the log file once
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 1 Jul 2020 19:21:15 +0000 (15:21 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 1 Jul 2020 19:21:15 +0000 (15:21 -0400)
commitd6bc29d987336927ff97219d5f661389f33f8f11
treebb44c1baa68531a70c3a9279f98a751cd5e86437
parent167234268cf6cb932ffb180586f3874ae3293a55
ktest.pl: Just open up the log file once

Currently, every write to the log file is done by opening the file, writing
to it, then closing the file. This rather expensive. Just open it at the
beginning and close it at the end.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl