mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
![]() Ensure nosetests sees all tests in the tests[] tuples. This requires some name changes because nosetests thinks all function names containing "test" are tests. (A "not a test" docorator would be an alternative, but that would require some try/except magic to avoid a dependency on nose.) To avoid nosetests thinks the functions are a test, - rename setup_all_tests() to setup_all_loops() - rename regex_test() to _regex_test() (in test-regex_matches.py) Also add the module_name as parameter to setup_all_loops and always run it (not only if __name__ == '__main__'). Known issue: nosetests errors out with ValueError: no such test method in <class ...>: stub_test when trying to run a single test generated out of tests[]. (debugging hint: stub_test is the name used in setup_test_loop().) But that's still an improvement over not seeing those tests at all ;-) Acked-by: Steve Beattie <steve@nxnw.org> for trunk and 2.9. |
||
---|---|---|
.. | ||
aa_test.py | ||
cleanprof_test.in | ||
cleanprof_test.out | ||
common_test.py | ||
config_test.py | ||
easyprof.conf | ||
logprof.conf | ||
Makefile | ||
minitools_test.py | ||
regex_tests.ini | ||
runtests-py2.sh | ||
runtests-py3.sh | ||
severity.db | ||
severity_broken.db | ||
test-aa-decode.py | ||
test-aa-easyprof.py | ||
test-aa.py | ||
test-aamode.py | ||
test-capability.py | ||
test-dbus_parse.py | ||
test-example.py | ||
test-logparser.py | ||
test-mount_parse.py | ||
test-pivot_root_parse.py | ||
test-ptrace_parse.py | ||
test-regex_matches.py | ||
test-severity.py | ||
test-signal_parse.py | ||
test-unix_parse.py |