t5304: use helper to report failure of "test foo = bar"
commit8ad16524183baf196d1db82b99ef52d05ca438e9
authorJeff King <peff@peff.net>
Fri, 10 Oct 2014 06:11:14 +0000 (10 02:11 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Oct 2014 18:27:40 +0000 (13 11:27 -0700)
tree0f40c931965c2f6e7b8679a9a448d1569ce439a8
parentf1dd90bd193637eeef772890c37afe3529a665d0
t5304: use helper to report failure of "test foo = bar"

For small outputs, we sometimes use:

  test "$(some_cmd)" = "something we expect"

instead of a full test_cmp. The downside of this is that
when it fails, there is no output at all from the script.
Let's introduce a small helper to make tests easier to
debug.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5304-prune.sh
t/test-lib-functions.sh