]> granicus.if.org Git - cgit/commitdiff
tests: set TEST_OUTPUT_DIRECTORY to the CGit test directory
authorJohn Keeping <john@keeping.me.uk>
Sun, 14 Apr 2013 16:59:30 +0000 (17:59 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 15 Apr 2013 14:59:37 +0000 (16:59 +0200)
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>
tests/setup.sh

index 81e7220662800a46fb697c1f7a35a4ee45dceb55..a573444583dc998c597708f5ec86aab9d5fe4bbf 100755 (executable)
@@ -16,6 +16,7 @@
 # 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