summaryrefslogtreecommitdiff
path: root/t/t4104-apply-boundary.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-03-20 10:13:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-20 18:35:57 (GMT)
commit8bafd20fd97f5101d1c2c8a332864a2cbc97ce0b (patch)
tree3b4d710e4f45654cba6855aed9210082c8b23ee9 /t/t4104-apply-boundary.sh
parent635ce72fae23a7d94625325fb02b5ff4416f3596 (diff)
downloadgit-8bafd20fd97f5101d1c2c8a332864a2cbc97ce0b.zip
git-8bafd20fd97f5101d1c2c8a332864a2cbc97ce0b.tar.gz
git-8bafd20fd97f5101d1c2c8a332864a2cbc97ce0b.tar.bz2
t4104: drop hand-rolled error reporting
This use of "||" fools --chain-lint into thinking the &&-chain is broken (and indeed, it is somewhat broken; a failure of update-index in these tests would show the patch file, even if we never got to the part of the test where we fed the patch to git-apply). The extra blocks were there to include more debugging output, but it hardly seems worth it; the user should know which command failed (because git-apply will produce error messages) and can look in the trash directory themselves. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4104-apply-boundary.sh')
-rwxr-xr-xt/t4104-apply-boundary.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/t/t4104-apply-boundary.sh b/t/t4104-apply-boundary.sh
index 497afdc..32e3b0e 100755
--- a/t/t4104-apply-boundary.sh
+++ b/t/t4104-apply-boundary.sh
@@ -95,10 +95,7 @@ do
test_expect_success "apply $kind-patch $with context" '
cat original >victim &&
git update-index victim &&
- git apply --index '"$u$kind-patch.$with"' || {
- cat '"$kind-patch.$with"'
- (exit 1)
- } &&
+ git apply --index '"$u$kind-patch.$with"' &&
test_cmp '"$kind"'-expect victim
'
done
@@ -113,10 +110,7 @@ do
test_expect_success "apply non-git $kind-patch without context" '
cat original >victim &&
git update-index victim &&
- git apply --unidiff-zero --index '"$kind-ng.without"' || {
- cat '"$kind-ng.without"'
- (exit 1)
- } &&
+ git apply --unidiff-zero --index '"$kind-ng.without"' &&
test_cmp '"$kind"'-expect victim
'
done