File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 33test_description=' test git-http-backend'
44. ./test-lib.sh
55. " $TEST_DIRECTORY " /lib-httpd.sh
6+
7+ if ! test_have_prereq CURL; then
8+ skip_all=' skipping raw http-backend tests, curl not available'
9+ test_done
10+ fi
11+
612start_httpd
713
814GET () {
9- curl --include " $HTTPD_URL /$SMART /repo.git/$1 " > out 2> /dev/null &&
15+ curl --include " $HTTPD_URL /$SMART /repo.git/$1 " > out &&
1016 tr ' \015' Q < out |
1117 sed '
1218 s/Q$//
@@ -19,7 +25,7 @@ GET() {
1925POST () {
2026 curl --include --data " $2 " \
2127 --header " Content-Type: application/x-$1 -request" \
22- " $HTTPD_URL /smart/repo.git/$1 " > out 2> /dev/null &&
28+ " $HTTPD_URL /smart/repo.git/$1 " > out &&
2329 tr ' \015' Q < out |
2430 sed '
2531 s/Q$//
Original file line number Diff line number Diff line change @@ -1208,3 +1208,7 @@ test_lazy_prereq LONG_IS_64BIT '
12081208
12091209test_lazy_prereq TIME_IS_64BIT ' test-tool date is64bit'
12101210test_lazy_prereq TIME_T_IS_64BIT ' test-tool date time_t-is64bit'
1211+
1212+ test_lazy_prereq CURL '
1213+ curl --version
1214+ '
You can’t perform that action at this time.
0 commit comments