From patchwork Thu Feb 7 05:57:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: run-tests: do not fail on empty tsttest file From: Simon Heimberg X-Patchwork-Id: 823 Message-Id: <784bc7d35c555e8a3cb7.1360216653@lapsi.heimberg.home> To: Mercurial-devel Date: Thu, 07 Feb 2013 06:57:33 +0100 # HG changeset patch # User Simon Heimberg # 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'