Allow exclusion of end-to-end tests.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 4 Feb 2011 10:12:04 +0000 (02:12 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 4 Feb 2011 10:12:04 +0000 (02:12 -0800)
runtests.py

index 6b8bd5f6549401ee092b656e3de313c4b16c333a..f8131451e3cca5e264616ef67db40f52153eae75 100644 (file)
@@ -195,6 +195,9 @@ class TestBuilder(object):
             if context == "build" and filename.endswith(".srctree"):
                 if not [ 1 for match in self.selectors if match(filename) ]:
                     continue
+                if self.exclude_selectors:
+                    if [1 for match in self.exclude_selectors if match(filename)]:
+                        continue
                 suite.addTest(EndToEndTest(os.path.join(path, filename), workdir, self.cleanup_workdir))
                 continue
             if not (filename.endswith(".pyx") or filename.endswith(".py")):