diff options
author | John Keeping <john@keeping.me.uk> | 2013-04-15 01:59:30 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-15 23:59:37 (JST) |
commit | 31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0 (patch) | |
tree | 823727242c7b3dbb89d83aab6bc1f1110cc5a20a | |
parent | 64f30688faef0876641a8e0e4f26b5c673c291d4 (diff) | |
download | cgit-31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0.zip cgit-31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0.tar.gz |
tests: set TEST_OUTPUT_DIRECTORY to the CGit test directory
By default, Git's test suite puts the trash directories and test-results
directory into its own directory, not that containing the tests being
run. This is less convenient for inspecting test failures, so set the
output directory to CGit's tests/ directory instead.
Note that there is currently a bug in Git whereby it will create the
trash directories in our tests/ directory regardless of the value of
TEST_OUTPUT_DIRECTORY, and then fail to remove them once the tests are
done. This change does currently affect the location of the
test-results/ directory though.
Signed-off-by: John Keeping <john@keeping.me.uk>
-rwxr-xr-x | tests/setup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/setup.sh b/tests/setup.sh index 81e7220..a573444 100755 --- a/tests/setup.sh +++ b/tests/setup.sh | |||
@@ -16,6 +16,7 @@ | |||
16 | # run_test 'repo summary' 'cgit_url "/foo" | tidy -e' | 16 | # run_test 'repo summary' 'cgit_url "/foo" | tidy -e' |
17 | 17 | ||
18 | : ${TEST_DIRECTORY=$(pwd)/../git/t} | 18 | : ${TEST_DIRECTORY=$(pwd)/../git/t} |
19 | : ${TEST_OUTPUT_DIRECTORY=$(pwd)} | ||
19 | TEST_NO_CREATE_REPO=YesPlease | 20 | TEST_NO_CREATE_REPO=YesPlease |
20 | . "$TEST_DIRECTORY"/test-lib.sh | 21 | . "$TEST_DIRECTORY"/test-lib.sh |
21 | 22 | ||