Skip to content

Commit b43b8a2

Browse files
committed
Merge branch 'bg/t5540-osx-grep'
* bg/t5540-osx-grep: t5540-http-test: shorten grep pattern
2 parents b9a77ee + f6918da commit b43b8a2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

t/t5540-http-push.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ x38="$x5$x5$x5$x5$x5$x5$x5$x1$x1$x1"
132132
x40="$x38$x2"
133133

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

0 commit comments

Comments
 (0)