Skip to content

Commit

Permalink
reftest: add a test showing the behaviour of opam repository remove w…
Browse files Browse the repository at this point in the history
…hen given unknown repositories
  • Loading branch information
kit-ty-kate committed Aug 16, 2024
1 parent 6fc00fd commit c7162ad
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/reftests/repository.test
Original file line number Diff line number Diff line change
Expand Up @@ -607,3 +607,28 @@ opam-version: "2.0"
[to-many-commits] Initialised
### git -C ./OPAM/repo/to-many-commits rev-list --all --count
1
### : Check the behaviour of opam repository remove when given unknown repositories
### opam repository --all --short
oper
oper3
repo2
to-many-commits
### opam repository --short
to-many-commits
oper3
oper
### opam repository remove does-not-exist
Repositories removed from the selections of switch repos. Use '--all' to forget about them altogether.
### opam repository remove does-not-exist --all
[WARNING] No configured repositories by these names found: does-not-exist
### opam repository remove does-not-exist oper
Repositories removed from the selections of switch repos. Use '--all' to forget about them altogether.
### opam repository remove does-not-exist repo2 --all
[WARNING] No configured repositories by these names found: does-not-exist
### opam repository --all --short
oper
oper3
to-many-commits
### opam repository --short
to-many-commits
oper3

0 comments on commit c7162ad

Please sign in to comment.