Skip to content

Commit

Permalink
Merge branch 'km/t3501-use-test-helpers' into next
Browse files Browse the repository at this point in the history
Test script updates.

* km/t3501-use-test-helpers:
  t3501: remove test -f and stop ignoring git <cmd> exit code
  • Loading branch information
gitster committed May 12, 2022
2 parents 1164a4c + 82b28c4 commit 66c5cd1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions t/t3501-revert-cherry-pick.sh
Expand Up @@ -66,8 +66,7 @@ test_expect_success 'cherry-pick after renaming branch' '
git checkout rename2 &&
git cherry-pick added &&
test $(git rev-parse HEAD^) = $(git rev-parse rename2) &&
test -f opos &&
test_cmp_rev rename2 HEAD^ &&
grep "Add extra line at the end" opos &&
git reflog -1 | grep cherry-pick
Expand All @@ -77,9 +76,9 @@ test_expect_success 'revert after renaming branch' '
git checkout rename1 &&
git revert added &&
test $(git rev-parse HEAD^) = $(git rev-parse rename1) &&
test -f spoo &&
! grep "Add extra line at the end" spoo &&
test_cmp_rev rename1 HEAD^ &&
test_path_is_file spoo &&
test_cmp_rev initial:oops HEAD:spoo &&
git reflog -1 | grep revert
'
Expand Down

0 comments on commit 66c5cd1

Please sign in to comment.