Commit a724a497 authored by Robert Bradshaw's avatar Robert Bradshaw

Allow exclusion of end-to-end tests.

parent 6c95459c
...@@ -195,6 +195,9 @@ class TestBuilder(object): ...@@ -195,6 +195,9 @@ class TestBuilder(object):
if context == "build" and filename.endswith(".srctree"): if context == "build" and filename.endswith(".srctree"):
if not [ 1 for match in self.selectors if match(filename) ]: if not [ 1 for match in self.selectors if match(filename) ]:
continue 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)) suite.addTest(EndToEndTest(os.path.join(path, filename), workdir, self.cleanup_workdir))
continue continue
if not (filename.endswith(".pyx") or filename.endswith(".py")): if not (filename.endswith(".pyx") or filename.endswith(".py")):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment