t8001: check the exit status of the command being tested
commit4b705f4052432906f0acbb22b25254eb3917e36c
authorJunio C Hamano <gitster@pobox.com>
Wed, 30 Mar 2011 19:22:05 +0000 (30 12:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Mar 2011 19:22:05 +0000 (30 12:22 -0700)
tree496e5b374a6cd95969a20eddc4cb8cd071e69c0c
parente0390119b249252a633875e4327c8a6463e4b6cb
t8001: check the exit status of the command being tested

Avoid running the command being tested as an upstream of a pipe;
doing so will lose its exit status.

While at it, modernise the style of the script.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t8001-annotate.sh