# HG changeset patch # User Alexis S. L. Carvalho # Date 2006-07-21 04:51:17 # Node ID d32b31e88391ec02f52b04eef16ba5c043333209 # Parent 133811a7688b65505a7f6251c7722c19a02eb4af 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 "-") diff --git a/tests/run-tests.py b/tests/run-tests.py --- 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)