diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-06-20 18:00:08 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-20 18:00:08 +0100 |
commit | 33c6611c2a6669dc3b04e76b7013d577fe39cff6 (patch) | |
tree | 7b33ccc8f8a2b59457bff2fe09ee98479f7fccc8 /tests | |
parent | 4ca1ee26b60f254dd65f8d8744e05d5ac12a3bdd (diff) | |
download | sos-33c6611c2a6669dc3b04e76b7013d577fe39cff6.tar.gz |
[Plugin] set size limits automatically
If the caller does not specific an explicit size limit (or 0 to
disable limits) automatically set the sizelimit argument for the
add_copy_spec(), add_cmd_output(), and add_journal() methods to
the value of the "log_size" option.
Resolves: #1325
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugin_tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 60d59d6f..c03e313e 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -92,6 +92,7 @@ class EnablerPlugin(Plugin): class MockOptions(object): all_logs = False + log_size = 25 class PluginToolTests(unittest.TestCase): |