t7610-mergetool: use test_cmp instead of test $(cat file) = $txt
[gitweb.git] / t / t5561-http-backend.sh
index 84a955770a017e68d0cc1e928929e5a043d64e86..6eb0294978a03f35f5c246a6000a92fc377b02ed 100755 (executable)
@@ -129,14 +129,7 @@ GET  /smart/repo.git/info/refs?service=git-receive-pack HTTP/1.1 403 -
 POST /smart/repo.git/git-receive-pack HTTP/1.1 403 -
 EOF
 test_expect_success 'server request log matches test results' '
-       sed -e "
-               s/^.* \"//
-               s/\"//
-               s/ [1-9][0-9]*\$//
-               s/^GET /GET  /
-       " >act <"$HTTPD_ROOT_PATH"/access.log &&
-       test_cmp exp act
+       check_access_log exp
 '
 
-stop_httpd
 test_done