comparison tests/run-tests.py @ 2702:133811a7688b

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.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 21 Jul 2006 01:51:17 -0300
parents 1b4eb1f92433
children d32b31e88391
comparison
equal deleted inserted replaced
2664:9b8df8dceeed 2702:133811a7688b
332 failed = 0 332 failed = 0
333 333
334 if len(args) == 0: 334 if len(args) == 0:
335 args = os.listdir(".") 335 args = os.listdir(".")
336 for test in args: 336 for test in args:
337 if test.startswith("test-") and not '~' in test and not '.' in test: 337 if (test.startswith("test-") and '~' not in test and
338 ('.' not in test or test.endswith('.py') or
339 test.endswith('.bat'))):
338 if not run_one(test): 340 if not run_one(test):
339 failed += 1 341 failed += 1
340 tests += 1 342 tests += 1
341 343
342 print "\n# Ran %d tests, %d failed." % (tests, failed) 344 print "\n# Ran %d tests, %d failed." % (tests, failed)