Change the tsc test to log the stdout of checktsc in results/checktsc
so that tsc distributions can be analyzed in more detail after the
fact, instead of just relying on the pass/fail reason of the test.

The output is pretty small (~N^2 lines for an N-core system) so the
diskspace needed to always capture this is fairly insignificant.

Risk: Low
Visibility: Save off an extra file in tsc test runs.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3893 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/tsc/tsc.py b/client/tests/tsc/tsc.py
index 5d69edd..ef3c960 100755
--- a/client/tests/tsc/tsc.py
+++ b/client/tests/tsc/tsc.py
@@ -18,6 +18,8 @@
 
     def run_once(self, args = '-t 650'):
         result = utils.run(self.srcdir + '/checktsc ' + args,
+                           stdout_tee=open(os.path.join(self.resultsdir,
+                                                        'checktsc.log'), 'w'),
                            ignore_status=True)
         if result.exit_status != 0:
             logging.error('Program checktsc exit status is %s',