X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/c95cc5ec56dbb7394015eb18201403be6d80f69b..b5b1f0715ad2e5db133c7f14217a14c0bffcd8ac:/tests/setup.sh diff --git a/tests/setup.sh b/tests/setup.sh index 81e7220..1d8677a 100755 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -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 @@ -97,4 +98,12 @@ cgit_url() CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="url=$1" cgit } +strip_headers () { + while read -r line + do + test -z "$line" && break + done + cat +} + test -z "$CGIT_TEST_NO_CREATE_REPOS" && setup_repos