Merge branch 'ab/avoid-losing-exit-codes-in-tests'
Test clean-up. * ab/avoid-losing-exit-codes-in-tests: tests: don't lose misc "git" exit codes tests: don't lose exit status with "test <op> $(git ...)" tests: don't lose "git" exit codes in "! ( git ... | grep )" tests: don't lose exit status with "(cd ...; test <op> $(git ...))" t/lib-patch-mode.sh: fix ignored exit codes auto-crlf tests: don't lose exit code in loops and outside tests
This commit is contained in:
@ -228,8 +228,12 @@ test_http_push_nonff () {
|
||||
git commit -a -m path2 --amend &&
|
||||
|
||||
test_must_fail git push -v origin >output 2>&1 &&
|
||||
(cd "$REMOTE_REPO" &&
|
||||
test $HEAD = $(git rev-parse --verify HEAD))
|
||||
(
|
||||
cd "$REMOTE_REPO" &&
|
||||
echo "$HEAD" >expect &&
|
||||
git rev-parse --verify HEAD >actual &&
|
||||
test_cmp expect actual
|
||||
)
|
||||
'
|
||||
|
||||
test_expect_success 'non-fast-forward push show ref status' '
|
||||
|
||||
Reference in New Issue
Block a user