'
test_expect_success 'did not use upload-pack service' '
- ! grep "/git-upload-pack" "$HTTPD_ROOT_PATH/access.log"
+ test_grep ! "/git-upload-pack" "$HTTPD_ROOT_PATH/access.log"
'
-test_expect_success 'git client shows text/plain errors' '
+test_expect_success ICONV 'git client shows text/plain errors' '
test_must_fail git clone "$HTTPD_URL/error/text" 2>stderr &&
- grep "this is the error message" stderr
+ test_grep "this is the error message" stderr
'
-test_expect_success 'git client does not show html errors' '
+test_expect_success ICONV 'git client does not show html errors' '
test_must_fail git clone "$HTTPD_URL/error/html" 2>stderr &&
- ! grep "this is the error message" stderr
+ test_grep ! "this is the error message" stderr
'
-test_expect_success 'git client shows text/plain with a charset' '
+test_expect_success ICONV 'git client shows text/plain with a charset' '
test_must_fail git clone "$HTTPD_URL/error/charset" 2>stderr &&
- grep "this is the error message" stderr
+ test_grep "this is the error message" stderr
'
test_expect_success ICONV 'http error messages are reencoded' '
test_must_fail git clone "$HTTPD_URL/error/utf16" 2>stderr &&
- grep "this is the error message" stderr
+ test_grep "this is the error message" stderr
'
test_expect_success ICONV 'reencoding is robust to whitespace oddities' '
test_must_fail git clone "$HTTPD_URL/error/odd-spacing" 2>stderr &&
- grep "this is the error message" stderr
+ test_grep "this is the error message" stderr
'
check_language () {
test_expect_success 'git client send an empty Accept-Language' '
GIT_TRACE_CURL=true LANGUAGE= git ls-remote "$HTTPD_URL/dumb/repo.git" 2>stderr &&
- ! grep "^=> Send header: Accept-Language:" stderr
+ test_grep ! "^=> Send header: Accept-Language:" stderr
'
test_expect_success 'remote-http complains cleanly about malformed urls' '