diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-11-23 21:34:27 -0800 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-11-30 15:50:51 -0800 |
commit | a74b8cde9197980913a33ddf984fefbb1fa43555 (patch) | |
tree | b33504eadbc46192ef52856ea6648a8c34a96bac /tox.ini | |
parent | fd540b32123e1e66f11b75373426348598e0b844 (diff) |
dmesg_tests.py: rework entire module to be better
This module reworks the dmesg testing to be much more robust, largely by
taking advantage of the mock module. This allows us test test dmesg
without actually calling dmesg, which eliminates the need for root
privileges, and allowing all tests to run on all platforms.
These tests also don't probe at the internal bits of the class, instead
they probe at the public API.
This significantly simplifies the tests, increases coverage, and
improves the quality of the tests in many cases, while making some of
the tests less fragile but less specific in other cases.
v2: - add tests for dmesg wrapping. Tests for this functionality where
present in the replaced implementation.
- remove '--attr=\!privileged' from tox.ini. There are now no
privileged tests, so no need to exclude them
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ deps = nose coverage mock -commands = nosetests framework/tests --attr="!privileged" --with-cover --cover-package=framework --cover-tests +commands = nosetests framework/tests --cover-package=framework --cover-tests [testenv:py27-accel] passenv=HOME @@ -29,4 +29,4 @@ deps = simplejson lxml backports.lzma -commands = nosetests framework/tests --attr="!privileged" --with-cover --cover-package=framework --cover-tests +commands = nosetests framework/tests --with-cover --cover-package=framework --cover-tests |