aboutsummaryrefslogtreecommitdiffstats
path: root/tests/plugin_tests.py
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-10-12 12:33:30 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-11-03 13:40:18 -0500
commit55ca9a849121b9058f8e0768eb4d4bef84db49ab (patch)
tree5951b559a6bc3acf88edd860bb9d32bd1740e52b /tests/plugin_tests.py
parenta5162c73ddd948085ca99fba81353104c54623de (diff)
downloadsos-55ca9a849121b9058f8e0768eb4d4bef84db49ab.tar.gz
[report] Allow users to specify commands and files to skip
Adds two new options, `--skip-commands` and `--skip-files`, that allow users to selectively skip specific command or file collection instead of having to disable whole plugins to skip those collections. These options are also exposed via `sos collect`, being gated by a version of 4.1 since that is the next scheduled release where we can guarantee this functionality will be present. Closes: #2203 Resolves: #2271 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/plugin_tests.py')
-rw-r--r--tests/plugin_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index 9290003a..0acf07f4 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -114,6 +114,8 @@ class MockOptions(object):
log_size = 25
allow_system_changes = False
no_postproc = False
+ skip_files = []
+ skip_cmds = []
class PluginToolTests(unittest.TestCase):