test-lib: Use $TEST_DIRECTORY or $GIT_BUILD_DIR instead of $(pwd) and ../
commit76c77279b41cad3819e56858882d1d4758f8cb92
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 19 Aug 2010 16:08:09 +0000 (19 16:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Aug 2010 22:05:01 +0000 (19 15:05 -0700)
tree3f5d527c9b3dfbf08114ff4f1c6b79bd7e362a38
parent7e7b4f71b5a39eb300da4af64b6f08cfe5eadff9
test-lib: Use $TEST_DIRECTORY or $GIT_BUILD_DIR instead of $(pwd) and ../

Change the redundant calls to $(pwd) to use $TEST_DIRECTORY
instead. None of these were being executed after we cd'd somewhere
else so they weren't actually needed.

This also makes it easier to add support for overriding the test
library location and run tests in a different directory than t/.

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