Code

tests: provide $TRASH_DIRECTORY variable
authorJeff King <peff@peff.net>
Sun, 9 Aug 2009 08:38:11 +0000 (04:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Aug 2009 17:49:34 +0000 (10:49 -0700)
commit91c8b825ce2a301e9861be60c3d7853fefa93c04
tree4327e255850c62f711c4e0dd62b2818f8090c3a1
parenteaf0551d56b4fd3a97c8d0f5ded1ea6e891f9005
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>
t/t4014-format-patch.sh
t/test-lib.sh