Skip to content

Commit

Permalink
Merge branch 'mb/t7110-use-test-path-helper' into seen
Browse files Browse the repository at this point in the history
* mb/t7110-use-test-path-helper:
  t7110: replace `test -f` with `test_path_is_*` helpers
  • Loading branch information
gitster committed Jan 3, 2025
2 parents 5411572 + 866ea87 commit d099395
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions t/t7110-reset-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,22 +270,22 @@ test_expect_success '--merge is ok with added/deleted merge' '
git reset --hard third &&
rm -f file2 &&
test_must_fail git merge branch3 &&
! test -f file2 &&
test -f file3 &&
test_path_is_missing file2 &&
test_path_is_file file3 &&
git diff --exit-code file3 &&
git diff --exit-code branch3 file3 &&
git reset --merge HEAD &&
! test -f file3 &&
! test -f file2 &&
test_path_is_missing file3 &&
test_path_is_missing file2 &&
git diff --exit-code --cached
'

test_expect_success '--keep fails with added/deleted merge' '
git reset --hard third &&
rm -f file2 &&
test_must_fail git merge branch3 &&
! test -f file2 &&
test -f file3 &&
test_path_is_missing file2 &&
test_path_is_file file3 &&
git diff --exit-code file3 &&
git diff --exit-code branch3 file3 &&
test_must_fail git reset --keep HEAD 2>err.log &&
Expand Down

0 comments on commit d099395

Please sign in to comment.