File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,11 @@ _run_sub_test_lib_test_common () {
106
106
EOF
107
107
cat >> " $name .sh" &&
108
108
export TEST_DIRECTORY &&
109
- TEST_OUTPUT_DIRECTORY=$( pwd) &&
110
- export TEST_OUTPUT_DIRECTORY &&
109
+ # The child test re-sources GIT-BUILD-OPTIONS and may thus
110
+ # override the test output directory. We thus pass it as an
111
+ # explicit override to the child.
112
+ TEST_OUTPUT_DIRECTORY_OVERRIDE=$( pwd) &&
113
+ export TEST_OUTPUT_DIRECTORY_OVERRIDE &&
111
114
GIT_SKIP_TESTS=$skip &&
112
115
export GIT_SKIP_TESTS &&
113
116
sane_unset GIT_TEST_FAIL_PREREQS &&
Original file line number Diff line number Diff line change 57
57
. " $GIT_BUILD_DIR " /GIT-BUILD-OPTIONS
58
58
export PERL_PATH SHELL_PATH
59
59
60
+ # In t0000, we need to override test directories of nested testcases. In case
61
+ # the developer has TEST_OUTPUT_DIRECTORY part of his build options, then we'd
62
+ # reset this value to instead contain what the developer has specified. We thus
63
+ # have this knob to allow overriding the directory.
64
+ if test -n " ${TEST_OUTPUT_DIRECTORY_OVERRIDE} "
65
+ then
66
+ TEST_OUTPUT_DIRECTORY=" ${TEST_OUTPUT_DIRECTORY_OVERRIDE} "
67
+ fi
68
+
60
69
# Disallow the use of abbreviated options in the test suite by default
61
70
if test -z " ${GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS} "
62
71
then
You can’t perform that action at this time.
0 commit comments