diff options
author | John Keeping <john@keeping.me.uk> | 2013-04-29 20:16:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-29 20:26:23 +0200 |
commit | 2d14e13c56a407eea6084ff2d5713a8d23d337f5 (patch) | |
tree | 6f58f7861ad192d448f3d10a93850e5a7fec32a2 /t/test-lib.sh | |
parent | t/Makefile: fix result handling with TEST_OUTPUT_DIRECTORY (diff) | |
download | git-2d14e13c56a407eea6084ff2d5713a8d23d337f5.tar.xz git-2d14e13c56a407eea6084ff2d5713a8d23d337f5.zip |
test output: respect $TEST_OUTPUT_DIRECTORY
Most test results go in $TEST_OUTPUT_DIRECTORY, but the output files for
tests run with --tee or --valgrind just use bare "test-results".
Changes these so that they do respect $TEST_OUTPUT_DIRECTORY.
As a result of this, the valgrind/analyze.sh script may no longer
inspect the correct files so it is also updated to respect
$TEST_OUTPUT_DIRECTORY by adding it to GIT-BUILD-OPTIONS. This may be a
regression for people who have TEST_OUTPUT_DIRECTORY in their config.mak
but want to override it in the environment, but this change merely
brings it into line with GIT_TEST_OPTS which already cannot be
overridden if it is specified in config.mak.
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 657b0bd862..e7d169cc2a 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -54,8 +54,8 @@ done,*) # do not redirect again ;; *' --tee '*|*' --va'*) - mkdir -p test-results - BASE=test-results/$(basename "$0" .sh) + mkdir -p "$TEST_OUTPUT_DIRECTORY/test-results" + BASE="$TEST_OUTPUT_DIRECTORY/test-results/$(basename "$0" .sh)" (GIT_TEST_TEE_STARTED=done ${SHELL_PATH} "$0" "$@" 2>&1; echo $? > $BASE.exit) | tee $BASE.out test "$(cat $BASE.exit)" = 0 |