Don't run tests with dots in their name (e.g. test-foo.orig)
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 08 Jun 2006 14:56:40 +0200
changeset 2408 6ed46bad9530
parent 2407 8fe3d60b7f19
child 2409 4068d6a7a99e
Don't run tests with dots in their name (e.g. test-foo.orig)
tests/run-tests.py
--- a/tests/run-tests.py	Wed Jun 07 13:16:25 2006 -0700
+++ b/tests/run-tests.py	Thu Jun 08 14:56:40 2006 +0200
@@ -251,9 +251,7 @@
         if len(args) == 0:
             args = os.listdir(".")
         for test in args:
-            if test.startswith("test-"):
-                if '~' in test or re.search(r'\.(out|err)$', test):
-                    continue
+            if test.startswith("test-") and not '~' in test and not '.' in test:
                 if not run_one(test):
                     failed += 1
                 tests += 1