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>

Johannes Schindelin committed Nov 10, 2022 at 07:28 UTC a90085b68cdd32fb138b81371b7622be66db1191
1 file changed +4 -1
t/t9210-scalar.sh
+4 -1
@@ -171,10 +171,13 @@ test_expect_success '`reconfigure -a` removes stale config entries' '
171 scalar register stale &&
172 scalar list >scalar.repos &&
173 grep stale scalar.repos &&
174 +
175 + grep -v stale scalar.repos >expect &&
176 +
177 rm -rf stale &&
178 scalar reconfigure -a &&
179 scalar list >scalar.repos &&
177 - ! grep stale scalar.repos
180 + test_cmp expect scalar.repos
181 '
182
183 test_expect_success 'scalar delete without enlistment shows a usage' '