Skip to content

Commit 0edf59b

Browse files
ppisarkontura
authored andcommitted
Recommend --use-host-config if --installroot is used and not all repositories 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
1 parent 08f2b4f commit 0edf59b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dnf-behave-tests/dnf/repo-cmdline-config.feature

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Scenario: Exit with an error when trying to --enable-repo='*' when there are no
77
Then the exit code is 2
88
And stderr is
99
"""
10-
No matching repositories for "*". Add "--help" for more information about the arguments.
10+
No matching repositories for *. To use repositories from a host system, pass --use-host-config option. Add "--help" for more information about the arguments.
1111
"""
1212

1313

@@ -17,7 +17,7 @@ Scenario: Exit with an error when trying to enable missing repo
1717
Then the exit code is 2
1818
And stderr is
1919
"""
20-
No matching repositories for "missing-repo". Add "--help" for more information about the arguments.
20+
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.
2121
"""
2222

2323

@@ -27,7 +27,7 @@ Scenario: Exit with an error when trying to enable multiple missing repos
2727
Then the exit code is 2
2828
And stderr is
2929
"""
30-
No matching repositories for "missing-repo1, missing-repo2". Add "--help" for more information about the arguments.
30+
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.
3131
"""
3232

3333

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

5353

@@ -59,7 +59,7 @@ Scenario: Exit with an error when using --repo but there are no repositories
5959
Then the exit code is 2
6060
And stderr is
6161
"""
62-
No matching repositories for "*, missing-repo". Add "--help" for more information about the arguments.
62+
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.
6363
"""
6464

6565

@@ -69,7 +69,7 @@ Scenario: Exit with an error when --repo specifies invalid repository
6969
Then the exit code is 2
7070
And stderr is
7171
"""
72-
No matching repositories for "missing-repo". Add "--help" for more information about the arguments.
72+
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.
7373
"""
7474

7575

@@ -78,7 +78,7 @@ Scenario: Exit with an error when --setop specifies invalid repository
7878
Then the exit code is 2
7979
And stderr is
8080
"""
81-
No matching repositories for "missing-repo". Add "--help" for more information about the arguments.
81+
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.
8282
"""
8383

8484

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

0 commit comments

Comments
 (0)