# HG changeset patch # User Simon Heimberg # Date 1351112971 -7200 # Node ID 02c4186c3aca9c3fbe4f629e51b0a093077545f4 # Parent 9bd54c35af97dddb1237d1886fb848e7943fc73c run-tests: do not fail on empty tsttest file Initialize n for not failing on empty tsttest files. [ original upstream message ] diff -r 9bd54c35af97 -r 02c4186c3aca tests/run-tests.py --- a/tests/run-tests.py Tue Jan 29 20:03:51 2013 +0100 +++ b/tests/run-tests.py Wed Oct 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'