author | Jonathan Nieder <jrnieder@gmail.com> | |
Thu, 15 Apr 2010 00:38:07 +0000 (19:38 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Apr 2010 00:56:53 +0000 (17:56 -0700) | ||
commit | fdf1bc48caa008c7f285db3323498f25a7758879 | |
tree | 3af17c4e749659e778c8017d5353ceb1c77d4434 | tree | snapshot |
parent | f78683f3a85ca16ae16e1180703d3280b272f45d | commit | diff |
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>
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 | diff | blob | history | |
t/test-lib.sh | diff | blob | history |