Mercurial > hg
comparison tests/test-http-bundle1.t @ 29564:db565a506729
test-http: use sed instead of fixed-with cut for reading access.log
Some systems (like FreeBSD jails) use something other than 127.0.0.1
for localhost, and it's not safe to assume it'll always be the same
width. Using sed with a replacement like this sidesteps the problem.
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 15 Jul 2016 12:39:36 -0400 |
parents | b74ca9ace65e |
children | 6e375ba01b04 |
comparison
equal
deleted
inserted
replaced
29563:839380cc3368 | 29564:db565a506729 |
---|---|
232 remote: adding manifests | 232 remote: adding manifests |
233 remote: adding file changes | 233 remote: adding file changes |
234 remote: added 1 changesets with 1 changes to 1 files | 234 remote: added 1 changesets with 1 changes to 1 files |
235 $ hg rollback -q | 235 $ hg rollback -q |
236 | 236 |
237 $ cut -c38- ../access.log | 237 $ sed 's/.*] "/"/' < ../access.log |
238 "GET /?cmd=capabilities HTTP/1.1" 200 - | 238 "GET /?cmd=capabilities HTTP/1.1" 200 - |
239 "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip | 239 "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip |
240 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces | 240 "GET /?cmd=listkeys HTTP/1.1" 401 - x-hgarg-1:namespace=namespaces |
241 "GET /?cmd=capabilities HTTP/1.1" 200 - | 241 "GET /?cmd=capabilities HTTP/1.1" 200 - |
242 "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip | 242 "GET /?cmd=lookup HTTP/1.1" 200 - x-hgarg-1:key=tip |