Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-11-10 10:28:47 +0300
committerTaylor Blau <me@ttaylorr.com>2022-11-12 01:24:36 +0300
commita90085b68cdd32fb138b81371b7622be66db1191 (patch)
treea22d6db57bf9f8055ae65581033ff727471ac470 /t/t9210-scalar.sh
parentc90db53d203d7ade1dc7abe63857cfb5616fe34f (diff)
tests(scalar): tighten the stale `scalar.repo` test some
As pointed out by Stolee, the previous incarnation of this test case was not stringent enough: we want to verify that _only_ the stale entries are removed (previously, the test case would have succeeded even if all entries had been removed). Let's rectify this and verify that the other entries are left intact. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/t9210-scalar.sh')
-rwxr-xr-xt/t9210-scalar.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t9210-scalar.sh b/t/t9210-scalar.sh
index c7f8a37910..25f500cf68 100755
--- a/t/t9210-scalar.sh
+++ b/t/t9210-scalar.sh
@@ -171,10 +171,13 @@ test_expect_success '`reconfigure -a` removes stale config entries' '
scalar register stale &&
scalar list >scalar.repos &&
grep stale scalar.repos &&
+
+ grep -v stale scalar.repos >expect &&
+
rm -rf stale &&
scalar reconfigure -a &&
scalar list >scalar.repos &&
- ! grep stale scalar.repos
+ test_cmp expect scalar.repos
'
test_expect_success 'scalar delete without enlistment shows a usage' '