Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/setup.sh | 11 |
1 file changed, 9 insertions, 2 deletions
diff --git a/tests/setup.sh b/tests/setup.sh index a083f75..4eab52c 100755 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -35,8 +35,15 @@ IFS=$LF set -- $test_argv IFS=$OLDIFS -: ${TEST_DIRECTORY=$(pwd)/../vendor/git/t} -: ${TEST_OUTPUT_DIRECTORY=$(pwd)} +# The library takes these from the environment when they are set there, so +# they are set outright, or a shell set up for work on Git itself would point +# the suite at another library and every path below at another tree. The +# fixtures and many tests name master, which the library would otherwise take +# from the same environment, or from a Git built with its breaking changes. +TEST_DIRECTORY=$(pwd)/../vendor/git/t +TEST_OUTPUT_DIRECTORY=$(pwd) +GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master +export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME # The library would otherwise leave a repository of its own in the trash # directory, and every repository these tests want is built by mkrepo below. TEST_NO_CREATE_REPO=YesPlease |
