summaryrefslogtreecommitdiff
path: root/selftest/testlist.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-04 04:01:28 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-04 18:02:07 +0100
commit616139c01e03799f2cb047f78c60d3afc004d15e (patch)
tree5ae02e33127e363015f96a039a1838dcd5bfec78 /selftest/testlist.py
parent4802561d690e63213cc2274a4b72ed278908bf97 (diff)
downloadsamba-616139c01e03799f2cb047f78c60d3afc004d15e.tar.gz
samba-616139c01e03799f2cb047f78c60d3afc004d15e.tar.bz2
samba-616139c01e03799f2cb047f78c60d3afc004d15e.zip
Add TestListFilter definition.
Diffstat (limited to 'selftest/testlist.py')
-rw-r--r--selftest/testlist.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/selftest/testlist.py b/selftest/testlist.py
index c37701280b..bc88f9d0c0 100644
--- a/selftest/testlist.py
+++ b/selftest/testlist.py
@@ -85,3 +85,16 @@ def read_testlist(inf, outf):
yield (name, env, cmdline, supports_loadlist, supports_idlist)
else:
outf.write(l)
+
+
+class TestListFilter(object):
+ """Interface for something that can filter a test list."""
+
+ def should_run_testsuite(self, name):
+ """Whether to run a specific testsuite.
+
+ :param name: Name of the testsuite
+ :return: List of tests to run. None means run the whole testsuite.
+ Return an empty list to not run this testsuite
+ """
+ raise NotImplementedError(self.should_run_testsuite)