Skip to content

Commit

Permalink
[tests] Call cleaner with --no-update when using keywords
Browse files Browse the repository at this point in the history
When running avocado tests in a sequence on the same host, further tests
are affected by cleaner default_mapping built from obfuscating specific
keywords also. Prevent adding these keywords to the mapping.

Resolves: sosreport#3165

Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
  • Loading branch information
pmoravec authored and TurboTurtle committed Mar 13, 2023
1 parent ff95169 commit 02d52f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ReportWithCleanedKeywords(StageOneReportTest):
:avocado: tags=stageone
"""

sos_cmd = '--clean -o filesys,kernel --keywords=fstab,Linux,tmp'
sos_cmd = '--clean -o filesys,kernel --keywords=fstab,Linux,tmp --no-update'

# Will the 'tmp' be properly treated in path to working dir without raising an error?
# To make this test effective, we assume the test runs on a system / with Policy
Expand Down
2 changes: 1 addition & 1 deletion tests/vendor_tests/redhat/rhbz1950350/sos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[clean]
keywords = shibboleth
domains = sosexample.com
#no-update = true
no-update = true

[plugin_options]
#rpm.rpmva = off

0 comments on commit 02d52f7

Please sign in to comment.