run-tests: avoid printing extra newlines from install log
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 06 Feb 2015 16:15:02 -0800
changeset 24074 4d9c738d942f
parent 24073 ff5caa8dfd99
child 24075 4bf484276787
run-tests: avoid printing extra newlines from install log If an installation error occurs, we print the install log. Before, output had extra newlines because we were using "print" on data that was already newline terminated.
tests/run-tests.py
--- a/tests/run-tests.py	Fri Feb 06 11:27:25 2015 -0800
+++ b/tests/run-tests.py	Fri Feb 06 16:15:02 2015 -0800
@@ -1870,7 +1870,7 @@
         else:
             f = open(installerrs, 'rb')
             for line in f:
-                print line
+                sys.stdout.write(line)
             f.close()
             sys.exit(1)
         os.chdir(self._testdir)