Re: [RFC PATCH v4 26/26] test smart http fetch and push
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 30, 2009, 22:21 UTC
- Message-ID
- <7vljish69m.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20091029143702.GU10505@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 19 quoted lines
> Junio C Hamano <gitster@pobox.com> wrote: >> "Shawn O. Pearce" <spearce@spearce.org> writes: >> >> > +test_expect_success 'clone http repository' ' >> > + GIT_CURL_VERBOSE=1 git clone $HTTPD_URL/git/repo.git clone 2>err && >> > + test_cmp file clone/file && >> > + egrep "^([<>]|Pragma|Accept|Content-|Transfer-)" err | >> > + egrep -v "^< (Server|Expires|Date|Content-Length:|Transfer-Encoding: chunked)" | >> > + sed -e " >> > + s/ >> > // >> > + s/^Content-Length: .*$/Content-Length: xxxx/ >> > + " >act && >> >> This chomped line is so unlike you---what happened? > > I was getting different Content-Lengths on different runs of the > test. I don't know why. Here the Content-Length is of the gzip'd > request, it shouldn't be varying with each run, but it seemed to be.
What I meant was the patch corruption. I couldn't tell what you were trying to filter with the first substitution you are giving to sed.