aboutsummaryrefslogtreecommitdiffstats
path: root/tests/option_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/option_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/option_tests.py')
-rw-r--r--tests/option_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/option_tests.py b/tests/option_tests.py
index 56480a58..44e2079f 100644
--- a/tests/option_tests.py
+++ b/tests/option_tests.py
@@ -16,6 +16,8 @@ class MockOptions(object):
dry_run = False
log_size = 25
allow_system_changes = False
+ skip_cmds = []
+ skip_files = []
class GlobalOptionTest(unittest.TestCase):