Skip to content

Commit 57ebdd5

Browse files
committed
Merge branch 'jk/t7407-use-test-grep'
Test clean-up. * jk/t7407-use-test-grep: t7407: use test_grep
2 parents 5a59d1e + ddb5287 commit 57ebdd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7407-submodule-foreach.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,14 @@ test_expect_success 'option-like arguments passed to foreach commands are not lo
426426
git submodule foreach "echo be --quiet" > ../expected &&
427427
git submodule foreach echo be --quiet > ../actual
428428
) &&
429-
grep -sq -e "--quiet" expected &&
429+
test_grep -e "--quiet" expected &&
430430
test_cmp expected actual
431431
'
432432

433433
test_expect_success 'option-like arguments passed to foreach recurse correctly' '
434434
git -C clone2 submodule foreach --recursive "echo be --an-option" >expect &&
435435
git -C clone2 submodule foreach --recursive echo be --an-option >actual &&
436-
grep -e "--an-option" expect &&
436+
test_grep -e "--an-option" expect &&
437437
test_cmp expect actual
438438
'
439439

0 commit comments

Comments
 (0)