Skip to content

Commit

Permalink
Merge branch 'bg/t5540-osx-grep'
Browse files Browse the repository at this point in the history
* bg/t5540-osx-grep:
  t5540-http-test: shorten grep pattern
  • Loading branch information
Junio C Hamano committed Sep 2, 2011
2 parents b9a77ee + f6918da commit b43b8a2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions t/t5540-http-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ x38="$x5$x5$x5$x5$x5$x5$x5$x1$x1$x1"
x40="$x38$x2"

test_expect_success 'PUT and MOVE sends object to URLs with SHA-1 hash suffix' '
sed -e "s/PUT /OP /" -e "s/MOVE /OP /" "$HTTPD_ROOT_PATH"/access.log |
grep -e "\"OP .*/objects/$x2/${x38}_$x40 HTTP/[.0-9]*\" 20[0-9] "
sed \
-e "s/PUT /OP /" \
-e "s/MOVE /OP /" \
-e "s|/objects/$x2/${x38}_$x40|WANTED_PATH_REQUEST|" \
"$HTTPD_ROOT_PATH"/access.log |
grep -e "\"OP .*WANTED_PATH_REQUEST HTTP/[.0-9]*\" 20[0-9] "
'

Expand Down

0 comments on commit b43b8a2

Please sign in to comment.