t7800: simplify basic usage test
commite66adcadfe63508dfd7410c2253116043894d298
authorDavid Aguilar <davvid@gmail.com>
Tue, 7 Feb 2017 09:16:59 +0000 (7 01:16 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Feb 2017 21:31:20 +0000 (8 13:31 -0800)
treeb4699f4621010029c90f6cca77a66f8005f8d220
parentd81345ce09c121fb0d18dec5c2535ec8d2a67542
t7800: simplify basic usage test

Use "test_line_count" instead of "wc -l", use "git -C" instead of a
subshell, and use test_expect_code when calling difftool.  Ease
debugging by capturing output into temporary files.

Suggested-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7800-difftool.sh