Skip to content

Commit b9a6830

Browse files
committed
Merge branch 'mb/t7110-use-test-path-helper'
Test modernization. * mb/t7110-use-test-path-helper: t7110: replace `test -f` with `test_path_is_*` helpers
2 parents 3902b08 + 866ea87 commit b9a6830

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/t7110-reset-merge.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,22 +270,22 @@ test_expect_success '--merge is ok with added/deleted merge' '
270270
git reset --hard third &&
271271
rm -f file2 &&
272272
test_must_fail git merge branch3 &&
273-
! test -f file2 &&
274-
test -f file3 &&
273+
test_path_is_missing file2 &&
274+
test_path_is_file file3 &&
275275
git diff --exit-code file3 &&
276276
git diff --exit-code branch3 file3 &&
277277
git reset --merge HEAD &&
278-
! test -f file3 &&
279-
! test -f file2 &&
278+
test_path_is_missing file3 &&
279+
test_path_is_missing file2 &&
280280
git diff --exit-code --cached
281281
'
282282

283283
test_expect_success '--keep fails with added/deleted merge' '
284284
git reset --hard third &&
285285
rm -f file2 &&
286286
test_must_fail git merge branch3 &&
287-
! test -f file2 &&
288-
test -f file3 &&
287+
test_path_is_missing file2 &&
288+
test_path_is_file file3 &&
289289
git diff --exit-code file3 &&
290290
git diff --exit-code branch3 file3 &&
291291
test_must_fail git reset --keep HEAD 2>err.log &&

0 commit comments

Comments
 (0)