comparison tests/run-tests.py @ 2408:6ed46bad9530

Don't run tests with dots in their name (e.g. test-foo.orig)
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 08 Jun 2006 14:56:40 +0200
parents 7e43d68f3900
children 4068d6a7a99e
comparison
equal deleted inserted replaced
2407:8fe3d60b7f19 2408:6ed46bad9530
249 failed = 0 249 failed = 0
250 250
251 if len(args) == 0: 251 if len(args) == 0:
252 args = os.listdir(".") 252 args = os.listdir(".")
253 for test in args: 253 for test in args:
254 if test.startswith("test-"): 254 if test.startswith("test-") and not '~' in test and not '.' in test:
255 if '~' in test or re.search(r'\.(out|err)$', test):
256 continue
257 if not run_one(test): 255 if not run_one(test):
258 failed += 1 256 failed += 1
259 tests += 1 257 tests += 1
260 258
261 print "\n# Ran %d tests, %d failed." % (tests, failed) 259 print "\n# Ran %d tests, %d failed." % (tests, failed)