diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-10-12 12:33:30 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-11-03 13:40:18 -0500 |
commit | 55ca9a849121b9058f8e0768eb4d4bef84db49ab (patch) | |
tree | 5951b559a6bc3acf88edd860bb9d32bd1740e52b /tests/option_tests.py | |
parent | a5162c73ddd948085ca99fba81353104c54623de (diff) | |
download | sos-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.py | 2 |
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): |