Code

test-lib: Allow overriding of TEST_DIRECTORY
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 19 Aug 2010 16:08:11 +0000 (16:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Aug 2010 19:12:01 +0000 (12:12 -0700)
commit62f539043c714031ccb78d13ed6c49d350233604
tree48284466b66f1c08189135e61ecb017a6f8a5c9a
parent6cec5c683535c8eacf6055064c9c5753b47bb031
test-lib: Allow overriding of TEST_DIRECTORY

Tests that test the test-lib.sh itself need to be executed in the
dynamically created trash directory, so we can't assume
$TEST_DIRECTORY is ../ for those.

As a side benefit this change also makes it easy for us to move the
t/*.sh tests into subdirectories if we ever want to do that.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh