Skip to content

Commit

Permalink
[tests] Disable verbose stdout killing avocado performance
Browse files Browse the repository at this point in the history
To prevent avocado hiccups that slow down sos execution, let disable
debug logs to stdout.

Resolves: #3693

Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pmoravec authored and TurboTurtle committed Jul 4, 2024
1 parent a79b866 commit 36841a0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/cleaner_tests/existing_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ExistingArchiveCleanTest(StageTwoReportTest):
:avocado: tags=stagetwo
"""

sos_cmd = '-v tests/test_data/%s.tar.xz' % ARCHIVE
sos_cmd = 'tests/test_data/%s.tar.xz' % ARCHIVE
sos_component = 'clean'

def test_obfuscation_log_created(self):
Expand Down Expand Up @@ -124,7 +124,7 @@ class ExistingArchiveCleanTmpTest(StageTwoReportTest):
:avocado: tags=stagetwo
"""

sos_cmd = f'-v --keywords var,tmp,avocado --disable-parsers \
sos_cmd = f'--keywords var,tmp,avocado --disable-parsers \
ip,ipv6,mac,username --no-update tests/test_data/{ARCHIVE}.tar.xz'
sos_component = 'clean'

Expand Down
2 changes: 1 addition & 1 deletion tests/cleaner_tests/full_report/full_report_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class FullCleanTest(StageTwoReportTest):
:avocado: tags=stagetwo
"""

sos_cmd = '-v --clean'
sos_cmd = '--clean'
sos_timeout = 600
# replace with an empty placeholder, make sure that this test case is not
# influenced by previous clean runs
Expand Down
2 changes: 1 addition & 1 deletion tests/cleaner_tests/ipv6_test/ipv6_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class IPv6Test(StageTwoReportTest):
"""

install_plugins = ['ipv6']
sos_cmd = '-v --clean -o ipv6'
sos_cmd = '--clean -o ipv6'
sos_timeout = 600
# replace default mapping to avoid being influenced by previous runs
# place mock file with crafted address used by mocked plugin
Expand Down
2 changes: 1 addition & 1 deletion tests/report_tests/options_tests/options_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class OptionsFromConfigTest(StageTwoReportTest):
"""

files = [('options_tests_sos.conf', '/etc/sos/sos.conf')]
sos_cmd = '-v '
sos_cmd = ''

def test_case_id_from_config(self):
self.assertTrue('8675309' in self.archive)
Expand Down

0 comments on commit 36841a0

Please sign in to comment.