diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-10-17 15:10:36 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-11-10 10:51:02 -0800 |
commit | 0212a1f9d284b547013b955f1f25af994bb5aa70 (patch) | |
tree | 42c04570b847fa1ada73c6dbaa9ab0dd9899135e /unittests/framework/test_profile.py | |
parent | 0d4eb8c6b7bb589bd36b8578979b836155e3bc45 (diff) | |
download | piglit-0212a1f9d284b547013b955f1f25af994bb5aa70.tar.gz |
framework/profile: replace Testprofile.{dmesg,monitoring} with dict
This allows a significant amount of cleanup to happen. It allows
removing attributes from the global OPTIONS, removing tests that no
longer apply, and because of the split run method it allows more values
to simply be passed.
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'unittests/framework/test_profile.py')
-rw-r--r-- | unittests/framework/test_profile.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/unittests/framework/test_profile.py b/unittests/framework/test_profile.py index 9ac0d2176..90673624c 100644 --- a/unittests/framework/test_profile.py +++ b/unittests/framework/test_profile.py @@ -27,13 +27,11 @@ from __future__ import ( import pytest import six -from framework import dmesg from framework import exceptions from framework import grouptools from framework import profile from framework.test.gleantest import GleanTest from . import utils -from . import skip # pylint: disable=invalid-name,no-self-use,protected-access @@ -73,28 +71,6 @@ class TestLoadTestProfile(object): class TestTestProfile(object): """Tests for profile.TestProfile.""" - def test_default_dmesg(self): - """profile.TestProfile: Dmesg is dummy by default.""" - profile_ = profile.TestProfile() - assert isinstance(profile_.dmesg, dmesg.DummyDmesg) - - @skip.linux - def test_set_dmesg_true(self): - """profile.TestProfile: Dmesg returns an appropriate dmesg is set to - True. - """ - profile_ = profile.TestProfile() - profile_.dmesg = True - assert isinstance(profile_.dmesg, dmesg.LinuxDmesg) - - @skip.linux - def test_set_dmesg_false(self): - """profile.TestProfile: Dmesg returns a DummyDmesg if set to False.""" - profile_ = profile.TestProfile() - profile_.dmesg = True - profile_.dmesg = False - assert isinstance(profile_.dmesg, dmesg.DummyDmesg) - class TestGroupManager(object): """Tests for TestProfile.group_manager.""" |