author | Jeff King <peff@peff.net> | |
Sun, 9 Aug 2009 08:38:11 +0000 (04:38 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 Aug 2009 17:49:34 +0000 (10:49 -0700) | ||
commit | 91c8b825ce2a301e9861be60c3d7853fefa93c04 | |
tree | 4327e255850c62f711c4e0dd62b2818f8090c3a1 | tree | snapshot |
parent | eaf0551d56b4fd3a97c8d0f5ded1ea6e891f9005 | commit | diff |
tests: provide $TRASH_DIRECTORY variable
Most scripts don't care about the absolute path to the trash
directory. The one exception was t4014 script, which pieced
together $TEST_DIRECTORY and $test itself to get an absolute
directory.
Instead, let's provide a $TRASH_DIRECTORY which specifies
the same thing. This keeps the $test variable internal to
test-lib.sh and paves the way for trash directories in other
locations.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Most scripts don't care about the absolute path to the trash
directory. The one exception was t4014 script, which pieced
together $TEST_DIRECTORY and $test itself to get an absolute
directory.
Instead, let's provide a $TRASH_DIRECTORY which specifies
the same thing. This keeps the $test variable internal to
test-lib.sh and paves the way for trash directories in other
locations.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4014-format-patch.sh | diff | blob | history | |
t/test-lib.sh | diff | blob | history |