Author: pburba
Date: Thu Apr 21 15:07:50 2011
New Revision: 1095742

URL: http://svn.apache.org/viewvc?rev=1095742&view=rev
Log:
Follow-up to r1081491: Fix broken --log-to-stdout with C tests.

* build/run_tests.py
  (TestHarness._run_c_test): There is no log when using
   --log-to-stdout, so don't try to write to it.

Modified:
    subversion/trunk/build/run_tests.py

Modified: subversion/trunk/build/run_tests.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1095742&r1=1095741&r2=1095742&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Thu Apr 21 15:07:50 2011
@@ -338,7 +338,9 @@ class TestHarness:
                             stderr=self.log)
     line = prog.stdout.readline()
     while line:
-      self.log.write(line)
+      # If using --log-to-stdout self.log in None.
+      if self.log:
+        self.log.write(line)
 
       if line.startswith('PASS') or line.startswith('FAIL') \
            or line.startswith('XFAIL') or line.startswith('XPASS') \


Reply via email to