t7800: modernize tests
commite42360c48eebc633b1536904839a1a073780ad8a
authorDavid Aguilar <davvid@gmail.com>
Thu, 21 Feb 2013 04:03:47 +0000 (20 20:03 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Feb 2013 04:38:23 +0000 (20 20:38 -0800)
treed2c54db95e20545140f9fcdb0df6a48e7c3d0589
parent9e5a86f204b5aa9819f4ac7d269fdeae64bec8a3
t7800: modernize tests

Eliminate a lot of redundant work by using test_config().
Catch more return codes by more use of temporary files
and test_cmp.

The original tests relied upon restore_test_defaults()
from the previous test to provide the next test with a sane
environment.  Make the tests do their own setup so that they
are not dependent on the success of the previous test.
The end result is shorter tests and better test isolation.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7800-difftool.sh