Skip to content

Commit

Permalink
config.feature: Workaround librhsm error messages
Browse files Browse the repository at this point in the history
If run outside of installroot, libdnf5 rhsm plugin is used and pollutes
stderr with its warnings.
  • Loading branch information
m-blaha authored and kontura committed Oct 10, 2024
1 parent 7282ce3 commit b147741
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions dnf-behave-tests/dnf/config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,10 @@ Scenario: Create dnf.conf file and test if host is using /etc/dnf/dnf.conf
"""
When I execute dnf with args "install vagare"
Then the exit code is 1
And stderr is
"""
<REPOSYNC>
Failed to resolve the transaction:
Argument 'vagare' matches only excluded packages.
"""
# rhsm plugin is polluting stderr with messages, we cannot use "stderr is" step
# librhsm-WARNING **: 12:59:28.478: Found 0 entitlement certificates
# librhsm-WARNING **: 12:59:28.478: Found 0 product certificates
And stderr contains "Argument 'vagare' matches only excluded packages."


@dnf5
Expand All @@ -234,12 +232,10 @@ Scenario: Create dnf.conf file and test if host is taking option --config /test/
| install-dep | labirinto-1.0-1.fc29.x86_64 |
When I execute dnf with args "--config /test/dnf.conf install dedalo-signed"
Then the exit code is 1
And stderr is
"""
<REPOSYNC>
Failed to resolve the transaction:
Argument 'dedalo-signed' matches only excluded packages.
"""
# rhsm plugin is polluting stderr with messages, we cannot use "stderr is" step
# librhsm-WARNING **: 12:59:28.478: Found 0 entitlement certificates
# librhsm-WARNING **: 12:59:28.478: Found 0 product certificates
And stderr contains "Argument 'dedalo-signed' matches only excluded packages."


@dnf5
Expand Down

0 comments on commit b147741

Please sign in to comment.