t7006: guard cleanup with test_expect_success
commitfdf1bc48caa008c7f285db3323498f25a7758879
authorJonathan Nieder <jrnieder@gmail.com>
Thu, 15 Apr 2010 00:38:07 +0000 (14 19:38 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Apr 2010 00:56:53 +0000 (14 17:56 -0700)
tree3af17c4e749659e778c8017d5353ceb1c77d4434
parentf78683f3a85ca16ae16e1180703d3280b272f45d
t7006: guard cleanup with test_expect_success

Most of these tests are removing files, environment variables, and
configuration that might interfere outside the test.  Putting these
clean-up commands in the test (in the same spirit as v1.7.1-rc0~59,
2010-03-20) means that errors during setup will be caught quickly and
non-error text will be suppressed without -v.

While at it, apply some other minor fixes:

 - do not rely on the shell to export variables defined with the same
   command as a function call

 - avoid whitespace immediately after the > redirection operator, for
   consistency with the style of other tests

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7006-pager.sh
t/test-lib.sh