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 3
3
test_description=' test git-http-backend'
4
4
. ./test-lib.sh
5
5
. " $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
+
6
12
start_httpd
7
13
8
14
GET () {
9
- curl --include " $HTTPD_URL /$SMART /repo.git/$1 " > out 2> /dev/null &&
15
+ curl --include " $HTTPD_URL /$SMART /repo.git/$1 " > out &&
10
16
tr ' \015' Q < out |
11
17
sed '
12
18
s/Q$//
@@ -19,7 +25,7 @@ GET() {
19
25
POST () {
20
26
curl --include --data " $2 " \
21
27
--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 &&
23
29
tr ' \015' Q < out |
24
30
sed '
25
31
s/Q$//
Original file line number Diff line number Diff line change @@ -1208,3 +1208,7 @@ test_lazy_prereq LONG_IS_64BIT '
1208
1208
1209
1209
test_lazy_prereq TIME_IS_64BIT ' test-tool date is64bit'
1210
1210
test_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