t/lib-httpd: add the strip_access_log() helper function
[gitweb.git] / t / t5551-http-fetch-smart.sh
index a51b7e20d32158d4b6609ba954e2ed59edaa6342..5f98fa90af7c0b2a032172248b35f07cdf8ebc0c 100755 (executable)
@@ -98,12 +98,7 @@ GET  /smart/repo.git/info/refs?service=git-upload-pack HTTP/1.1 200
 POST /smart/repo.git/git-upload-pack HTTP/1.1 200
 EOF
 test_expect_success 'used upload-pack service' '
-       sed -e "
-               s/^.* \"//
-               s/\"//
-               s/ [1-9][0-9]*\$//
-               s/^GET /GET  /
-       " >act <"$HTTPD_ROOT_PATH"/access.log &&
+       strip_access_log >act &&
        test_cmp exp act
 '