Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-17 Thread Junio C Hamano
Jeff King writes: >> -cat >expect_cookies.txt <> +cat > This can be spelled: > > sort >expect_cookies.txt < > can't it? Then we do not even incur the extra process. :) Yeah, true. Running cat only to feed a pipe with contents of a single file or the here-doc is an anti-p

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-17 Thread Jeff King
On Mon, Sep 17, 2018 at 02:45:55PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > Yes, I think sorting the expect file would work fine. I'm OK with that, > > or just leaving a comment. The comment has the bonus that it does not > > cost an extra process at runtime. I'd probably use a sor

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-17 Thread Junio C Hamano
t way we do not have to remember the list must be sorted. Here is what I'll merge to 'next'. -- >8 -- From: Todd Zullinger Date: Fri, 7 Sep 2018 19:22:05 -0400 Subject: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing MIME-Version: 1.0 Content-Type: text/plain; c

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-11 Thread Junio C Hamano
Todd Zullinger writes: > With curl-7.61.1 cookies are sorted by creation-time¹. Sort the output > used in the 'cookies stored in http.cookiefile when http.savecookies > set' test before comparing it to the expected cookies. > > ¹ https://github.com/curl/curl/commit/e2ef8d6fa ("cookies: support >

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-08 Thread Jeff King
On Fri, Sep 07, 2018 at 11:28:41PM -0400, Todd Zullinger wrote: > > So this fix looks fine. It might be worth a comment above the creation > > of expect_cookies.txt to mention it must be in sorted order (of course > > anybody modifying it would see a test failure). > > I thought about running the

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-07 Thread Todd Zullinger
Jeff King wrote: > On Fri, Sep 07, 2018 at 07:22:05PM -0400, Todd Zullinger wrote: > >> With curl-7.61.1 cookies are sorted by creation-time¹. Sort the output >> used in the 'cookies stored in http.cookiefile when http.savecookies >> set' test before comparing it to the expected cookies. >> >> ¹

Re: [PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-07 Thread Jeff King
On Fri, Sep 07, 2018 at 07:22:05PM -0400, Todd Zullinger wrote: > With curl-7.61.1 cookies are sorted by creation-time¹. Sort the output > used in the 'cookies stored in http.cookiefile when http.savecookies > set' test before comparing it to the expected cookies. > > ¹ https://github.com/curl/c

[PATCH] t5551-http-fetch-smart.sh: sort cookies before comparing

2018-09-07 Thread Todd Zullinger
With curl-7.61.1 cookies are sorted by creation-time¹. Sort the output used in the 'cookies stored in http.cookiefile when http.savecookies set' test before comparing it to the expected cookies. ¹ https://github.com/curl/curl/commit/e2ef8d6fa ("cookies: support creation-time attribute for cooki