all repos — cgit @ 31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Sun, 14 Apr 2013 17:59:30 +0100
commit

31f56fc1ecfe7e5131cf31a30a74dcc0803d32d0

parent

64f30688faef0876641a8e0e4f26b5c673c291d4

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M tests/setup.shtests/setup.sh

@@ -16,6 +16,7 @@ # run_test 'repo index' 'cgit_url "/" | tidy -e'

# run_test 'repo summary' 'cgit_url "/foo" | tidy -e' : ${TEST_DIRECTORY=$(pwd)/../git/t} +: ${TEST_OUTPUT_DIRECTORY=$(pwd)} TEST_NO_CREATE_REPO=YesPlease . "$TEST_DIRECTORY"/test-lib.sh