aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-06-20 18:00:08 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-20 18:00:08 +0100
commit33c6611c2a6669dc3b04e76b7013d577fe39cff6 (patch)
tree7b33ccc8f8a2b59457bff2fe09ee98479f7fccc8 /tests
parent4ca1ee26b60f254dd65f8d8744e05d5ac12a3bdd (diff)
downloadsos-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.py1
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):