[PATCH 1 of 3] Allow tests that end in .py and .bat

Alexis S. L. Carvalho alexis at cecm.usp.br
Fri Jul 21 04:36:40 UTC 2006


# HG changeset patch
# User Alexis S. L. Carvalho <alexis at cecm.usp.br>
# Date 1153457477 10800
# Node ID 0ff6087a458637719e88967e910f31bb29430efd
# Parent  02b6fa7bbfbf9bff15a1965f43347deed72c8f41
Allow tests that end in .py and .bat

Revision 6ed46bad9530 disallowed tests that have a '.' in the name, but
that also disallows tests that end in .py and .bat, even though run-tests.py
has some code to special case them.

diff -r 02b6fa7bbfbf -r 0ff6087a4586 tests/run-tests.py
--- a/tests/run-tests.py	Wed Jul 19 07:56:40 2006 -0700
+++ b/tests/run-tests.py	Fri Jul 21 01:51:17 2006 -0300
@@ -334,7 +334,9 @@ try:
         if len(args) == 0:
             args = os.listdir(".")
         for test in args:
-            if test.startswith("test-") and not '~' in test and not '.' in test:
+            if (test.startswith("test-") and '~' not in test and
+                ('.' not in test or test.endswith('.py') or 
+                 test.endswith('.bat'))):
                 if not run_one(test):
                     failed += 1
                 tests += 1



More information about the Mercurial mailing list