From 2aec59914031d0f2b59f658243b9b0c49c8e5b13 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Fri, 23 Jun 2023 14:34:40 +0200 Subject: [tests] Make options_tests faster by calling them on a few plugins only options_tests.py tests -n option which means tens of plugins are redundantly collected. Testing -o option is effectively the same while the sosreport run needs a half time only. The functionality of -n option is tested elsewhere, thus the change does not shrink test coverage. Resolves: #3288 Signed-off-by: Pavel Moravec --- tests/report_tests/options_tests/options_tests.py | 6 +++--- tests/report_tests/options_tests/options_tests_sos.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/report_tests/options_tests/options_tests.py b/tests/report_tests/options_tests/options_tests.py index f8e1ee60..997042ba 100644 --- a/tests/report_tests/options_tests/options_tests.py +++ b/tests/report_tests/options_tests/options_tests.py @@ -22,8 +22,8 @@ class OptionsFromConfigTest(StageTwoReportTest): def test_case_id_from_config(self): self.assertTrue('8675309' in self.archive) - def test_plugins_skipped_from_config(self): - self.assertPluginNotIncluded(['networking', 'logs']) + def test_plugins_only_from_config(self): + self.assertOnlyPluginsIncluded(['host', 'kernel']) def test_plugopts_logged_from_config(self): self.assertSosLogContains( @@ -41,5 +41,5 @@ class OptionsFromConfigTest(StageTwoReportTest): def test_effective_options_logged_correctly(self): self.assertSosLogContains( - "effective options now: --batch --case-id 8675309 --plugopts kernel.with-timer=on,kernel.trace=yes --skip-plugins networking,logs" + "effective options now: --batch --case-id 8675309 --only-plugins host,kernel --plugopts kernel.with-timer=on,kernel.trace=yes" ) diff --git a/tests/report_tests/options_tests/options_tests_sos.conf b/tests/report_tests/options_tests/options_tests_sos.conf index c0f641d9..fd92d700 100644 --- a/tests/report_tests/options_tests/options_tests_sos.conf +++ b/tests/report_tests/options_tests/options_tests_sos.conf @@ -2,7 +2,7 @@ #verbose = 3 [report] -skip-plugins = networking,logs +only-plugins = host,kernel case-id = 8675309 [collect] -- cgit