# HG changeset patch # User Simon Heimberg # Date 1351112971 -7200 # Node ID ba5e71770db261c164e1ac93b4546da98a272e67 # Parent 2fefd1170bf269e26bb304553009f38e0117c342 run-tests: do not fail on empty tsttest file Initialize n for not failing on empty tsttest files. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -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'