From c7162ad479cf9b3d04bf322fdd1f9ad997cd414d Mon Sep 17 00:00:00 2001 From: Kate Date: Mon, 12 Aug 2024 22:08:29 +0100 Subject: [PATCH] reftest: add a test showing the behaviour of opam repository remove when given unknown repositories --- tests/reftests/repository.test | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/reftests/repository.test b/tests/reftests/repository.test index 94abd2b1bd8..38af16e2932 100644 --- a/tests/reftests/repository.test +++ b/tests/reftests/repository.test @@ -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