t7600 (merge): modernize style
commit4c0734578f3eee3fe6282014257edfcd7084174b
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 17 Aug 2010 06:53:56 +0000 (17 01:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2010 21:02:02 +0000 (18 14:02 -0700)
tree5db36805b2937f0044ce6b0865cca263285ec532
parentb81f925f709a10b37fb4fcd03629b55bc890a478
t7600 (merge): modernize style

Guard setup commands with test_expect_success, so they are easier
to visually skip over and get to the good part.  While at it:

 - use "printf '%s\n' a b ..." instead of "cat <<EOF" for test
   vectors with short lines;

 - use test_cmp instead of test foo = bar where possible, for
   better output with -v on failure;

 - do not go to extraordinary lengths to print a relevant message
   when test commands fail.  There is a patch in flight that could be
   used to restore the nice error messages in a cleaner way.

Cc: Lars Hjemli <hjemli@gmail.com>
Cc: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7600-merge.sh