t/lib-httpd: avoid occasional failures when checking access.log
[gitweb.git] / t / t5541-http-push-smart.sh
index 3fbe7722ffdd02f7f0e5456e7ba22892992222e2..918822868ea593caad2a11bf909c629211d04866 100755 (executable)
@@ -47,8 +47,7 @@ test_expect_success 'no empty path components' '
        cd "$ROOT_PATH" &&
        git clone $HTTPD_URL/smart/test_repo.git/ test_repo_clone &&
 
-       strip_access_log >act &&
-       test_cmp exp act
+       check_access_log exp
 '
 
 test_expect_success 'clone remote repository' '
@@ -129,8 +128,7 @@ GET  /smart/test_repo.git/info/refs?service=git-receive-pack HTTP/1.1 200
 POST /smart/test_repo.git/git-receive-pack HTTP/1.1 200
 EOF
 test_expect_success 'used receive-pack service' '
-       strip_access_log >act &&
-       test_cmp exp act
+       check_access_log exp
 '
 
 test_http_push_nonff "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git \