summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-10-14 15:45:50 -0700
committerDylan Baker <dylan@pnwbakers.com>2016-11-10 10:51:02 -0800
commit3a0192faab0afaab24bafef795fbf6b65dafb36a (patch)
treec1b2294a42186373d0e2d73eb5f41180a13589c5 /unittests
parent56f8ba1f9276ddd02669f630c40005838258840a (diff)
framework: Remove exclude_tests from options.OPTIONS
Rather than putting this in a global variable, just add a filter for this in the runner. Far simpler, and removes more globals. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'unittests')
-rw-r--r--unittests/framework/test_profile.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/unittests/framework/test_profile.py b/unittests/framework/test_profile.py
index 4ffabfad5..f2aa5b5f8 100644
--- a/unittests/framework/test_profile.py
+++ b/unittests/framework/test_profile.py
@@ -154,23 +154,6 @@ class TestTestProfile(object):
assert dict(profile_.test_list) == baseline
- def test_matches_env_exclude(self):
- """profile.TestProfile.prepare_test_list: 'not path in
- env.exclude_tests'.
- """
- # Pylint can't figure out that self.opts isn't a dict, but an
- # options._Option object.
- self.opts.exclude_tests.add(grouptools.join('group3', 'test5')) # pylint: disable=no-member
-
- baseline = copy.deepcopy(self.data)
- del baseline[grouptools.join('group3', 'test5')]
-
- profile_ = profile.TestProfile()
- profile_.test_list = self.data
- profile_.prepare_test_list()
-
- assert dict(profile_.test_list) == dict(baseline)
-
def test_matches_exclude_mar(self):
"""profile.TestProfile.prepare_test_list: 'not
matches_any_regexp()'.