Skip to content

Commit a90085b

Browse files
dschottaylorr
authored andcommitted
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 <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent c90db53 commit a90085b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t9210-scalar.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,13 @@ test_expect_success '`reconfigure -a` removes stale config entries' '
171171
scalar register stale &&
172172
scalar list >scalar.repos &&
173173
grep stale scalar.repos &&
174+
175+
grep -v stale scalar.repos >expect &&
176+
174177
rm -rf stale &&
175178
scalar reconfigure -a &&
176179
scalar list >scalar.repos &&
177-
! grep stale scalar.repos
180+
test_cmp expect scalar.repos
178181
'
179182

180183
test_expect_success 'scalar delete without enlistment shows a usage' '

0 commit comments

Comments
 (0)