Use the warmup run to log the output, and use /dev/null for redirect during
the main test, per suggestion from apw
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@796 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/kernel.py b/client/bin/kernel.py
index 78b84ff..58f206f 100755
--- a/client/bin/kernel.py
+++ b/client/bin/kernel.py
@@ -260,7 +260,7 @@
def build_timed(self, threads, timefile = '/dev/null', make_opts = '',
- output = None):
+ output = '/dev/null'):
"""time the bulding of the kernel"""
os.chdir(self.build_dir)
self.set_cross_cc()
@@ -268,8 +268,7 @@
self._clean()
build_string = "/usr/bin/time -o %s make %s -j %s vmlinux" \
% (timefile, make_opts, threads)
- if output:
- build_string += ' >> %s 2>&1' % output
+ build_string += ' > %s 2>&1' % output
print build_string
system(build_string)