summaryrefslogtreecommitdiff
path: root/t/t6111-rev-list-treesame.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-03-20 10:07:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-20 17:20:15 (GMT)
commit5ca812a19c97a2cbfe797748bc9bf6ebde9e0f64 (patch)
treee92510e77e840c56bd14789c6f0239d89241e041 /t/t6111-rev-list-treesame.sh
parent99094a7ad484085b9f6849a8ebe1e23467c5bc14 (diff)
downloadgit-5ca812a19c97a2cbfe797748bc9bf6ebde9e0f64.zip
git-5ca812a19c97a2cbfe797748bc9bf6ebde9e0f64.tar.gz
git-5ca812a19c97a2cbfe797748bc9bf6ebde9e0f64.tar.bz2
t: assume test_cmp produces verbose output
Some tests call test_cmp, and if it fails show the actual output generated. This is mostly pointless, as test_cmp will already show a diff between the expected and actual output. It also fools --chain-lint by putting an "||" in the middle of the chain, so we'd rather not use this construct. Note that these cases actually show a pre-processed version of the data, rather than exactly what test_cmp would show. However, test_cmp's output is generally good for pointing the user in the right direction, and they can then dig in the trash directory themselves if they want to see more details. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6111-rev-list-treesame.sh')
-rwxr-xr-xt/t6111-rev-list-treesame.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/t6111-rev-list-treesame.sh b/t/t6111-rev-list-treesame.sh
index 45e3673..32474c2 100755
--- a/t/t6111-rev-list-treesame.sh
+++ b/t/t6111-rev-list-treesame.sh
@@ -92,10 +92,7 @@ check_outcome () {
git log --format="$FMT" $param |
unnote >actual &&
sed -e "$munge_actual" <actual >check &&
- test_cmp expect check || {
- cat actual
- false
- }
+ test_cmp expect check
'
}