diff options
Diffstat (limited to 'tests/report_tests')
-rw-r--r-- | tests/report_tests/basic_report_tests.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/report_tests/basic_report_tests.py b/tests/report_tests/basic_report_tests.py index 0cf5bd4e..4a5e0001 100644 --- a/tests/report_tests/basic_report_tests.py +++ b/tests/report_tests/basic_report_tests.py @@ -15,11 +15,15 @@ class NormalSoSReport(StageOneReportTest): :avocado: tags=stageone """ - sos_cmd = '-vvv --label thisismylabel' + sos_cmd = '-v --label thisismylabel' def test_debug_in_logs_verbose(self): self.assertSosLogContains('DEBUG') + def test_debug_not_printed_to_console(self): + self.assertOutputNotContains('added cmd output') + self.assertOutputNotContains('\[archive:.*\]') + def test_postproc_called(self): self.assertSosLogContains('substituting scrpath') @@ -30,6 +34,21 @@ class NormalSoSReport(StageOneReportTest): self.assertFileCollected('free') +class LogLevelTest(StageOneReportTest): + """ + :avocado: tags=stageone + """ + + sos_cmd = '-vvv' + + def test_archive_logging_enabled(self): + self.assertSosLogContains('DEBUG: \[archive:.*\]') + self.assertSosLogContains('Making leading paths for') + + def test_debug_printed_to_console(self): + self.assertOutputContains('\[plugin:.*\]') + + class RestrictedSoSReport(StageOneReportTest): """ :avocado: tags=stageone |