diff tests/run-tests.py @ 2703:d32b31e88391

run-tests.py: fix diff output when test-foo.out doesn't exist. Previously, if test-foo.out doesn't exist and test-foo outputs something, the first line of the diff will look like this: -+changeset: 0:0acdaf898367 (note the leading "-")
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 21 Jul 2006 01:51:17 -0300
parents 133811a7688b
children 030d0abdf91b
line wrap: on
line diff
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -244,7 +244,7 @@ def run_one(test):
         ref_out = splitnewlines(f.read())
         f.close()
     else:
-        ref_out = ['']
+        ref_out = []
     if out != ref_out:
         diffret = 1
         print "\nERROR: %s output changed" % (test)