test-lib: Allow overriding of TEST_DIRECTORY
commit07b74a9fc5fe96981c25641366664f188e08d29d
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 19 Aug 2010 16:08:11 +0000 (19 16:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Aug 2010 22:05:03 +0000 (19 15:05 -0700)
tree731b65317b983dc50bb7112923b3a15cf35e8653
parente4b52593c67d5ce2710158a6bece402fe110cade
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