[PATCH] run-tests: do not fail on empty tsttest file

Simon Heimberg simohe at besonet.ch
Wed Feb 6 23:57:33 CST 2013


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1351112971 -7200
# Branch stable
# Node ID 784bc7d35c555e8a3cb73d5088b0c3fa8d6f6914
# Parent  8e31997ac2295deb149ac23c0f9635c6613ba4e6
run-tests: do not fail on empty tsttest file

Initialize n for not failing on empty tsttest files.

diff -r 8e31997ac229 -r 784bc7d35c55 tests/run-tests.py
--- a/tests/run-tests.py	Don Feb 07 06:50:27 2013 +0100
+++ b/tests/run-tests.py	Mit Okt 24 23:09:31 2012 +0200
@@ -622,6 +622,7 @@
         script.append('set -x\n')
     if os.getenv('MSYSTEM'):
         script.append('alias pwd="pwd -W"\n')
+    n = 0
     for n, l in enumerate(t):
         if not l.endswith('\n'):
             l += '\n'


More information about the Mercurial-devel mailing list