Skip to content

Commit

Permalink
Recommend --use-host-config if --installroot is used and not all repo…
Browse files Browse the repository at this point in the history
…sitories can be enabled

Adapt tests to a new error message wording when an installroot is
used and a repository cannot be enabled or disabled.

Related: rpm-software-management/dnf5#1760
  • Loading branch information
ppisar authored and kontura committed Oct 9, 2024
1 parent 08f2b4f commit 0edf59b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dnf-behave-tests/dnf/repo-cmdline-config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Scenario: Exit with an error when trying to --enable-repo='*' when there are no
Then the exit code is 2
And stderr is
"""
No matching repositories for "*". Add "--help" for more information about the arguments.
No matching repositories for *. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -17,7 +17,7 @@ Scenario: Exit with an error when trying to enable missing repo
Then the exit code is 2
And stderr is
"""
No matching repositories for "missing-repo". Add "--help" for more information about the arguments.
No matching repositories for missing-repo. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -27,7 +27,7 @@ Scenario: Exit with an error when trying to enable multiple missing repos
Then the exit code is 2
And stderr is
"""
No matching repositories for "missing-repo1, missing-repo2". Add "--help" for more information about the arguments.
No matching repositories for missing-repo1, missing-repo2. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -47,7 +47,7 @@ Scenario: Exit with an error when trying to --disable-repo='*' when there are no
Then the exit code is 2
And stderr is
"""
No matching repositories for "*". Add "--help" for more information about the arguments.
No matching repositories for *. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -59,7 +59,7 @@ Scenario: Exit with an error when using --repo but there are no repositories
Then the exit code is 2
And stderr is
"""
No matching repositories for "*, missing-repo". Add "--help" for more information about the arguments.
No matching repositories for *, missing-repo. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -69,7 +69,7 @@ Scenario: Exit with an error when --repo specifies invalid repository
Then the exit code is 2
And stderr is
"""
No matching repositories for "missing-repo". Add "--help" for more information about the arguments.
No matching repositories for missing-repo. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -78,7 +78,7 @@ Scenario: Exit with an error when --setop specifies invalid repository
Then the exit code is 2
And stderr is
"""
No matching repositories for "missing-repo". Add "--help" for more information about the arguments.
No matching repositories for missing-repo. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""


Expand All @@ -87,5 +87,5 @@ Scenario: Exit with an error when trying --setop for all repos but there are non
Then the exit code is 2
And stderr is
"""
No matching repositories for "*". Add "--help" for more information about the arguments.
No matching repositories for *. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
"""

0 comments on commit 0edf59b

Please sign in to comment.