diff options
Diffstat (limited to 'tests/setup.sh')
| -rwxr-xr-x | tests/setup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/setup.sh b/tests/setup.sh index a573444..1d8677a 100755 --- a/tests/setup.sh +++ b/tests/setup.sh | |||
| @@ -98,4 +98,12 @@ cgit_url() | |||
| 98 | CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="url=$1" cgit | 98 | CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="url=$1" cgit |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | strip_headers () { | ||
| 102 | while read -r line | ||
| 103 | do | ||
| 104 | test -z "$line" && break | ||
| 105 | done | ||
| 106 | cat | ||
| 107 | } | ||
| 108 | |||
| 101 | test -z "$CGIT_TEST_NO_CREATE_REPOS" && setup_repos | 109 | test -z "$CGIT_TEST_NO_CREATE_REPOS" && setup_repos |
