GIT-BUILD-OPTIONS: propagate project's source directory
A couple of our tests require knowledge around where to find the project's source directory in order to locate files required for the test itself. Until now we have been wiring these up ad-hoc via new, specialized variables catered to the specific usecase. This is quite awkward though, as every test that potentially needs to locate paths relative to the source directory needs to grow another variable. Introduce a new "GIT_SOURCE_DIR" variable into GIT-BUILD-OPTIONS to stop this proliferation. Remove existing variables that can be derived from it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
0394451348
commit
c5823641a6
@ -7,7 +7,7 @@
|
||||
. ./test-lib.sh
|
||||
|
||||
GIT_TEXTDOMAINDIR="$GIT_TEST_TEXTDOMAINDIR"
|
||||
GIT_PO_PATH="$GIT_TEST_POPATH"
|
||||
GIT_PO_PATH="$GIT_SOURCE_DIR/po"
|
||||
export GIT_TEXTDOMAINDIR GIT_PO_PATH
|
||||
|
||||
if test -n "$GIT_TEST_INSTALLED"
|
||||
|
Reference in New Issue
Block a user