From: Brian Gernhardt Date: Mon, 05 Aug 2013 15:59:24 GMT Subject: [PATCH 3/3] t5551: Remove header from curl cookie file Message-ID: <1375718364-13824-4-git-send-email-brian@gernhardtsoftware.com> In-Reply-To: <1375718364-13824-1-git-send-email-brian@gernhardtsoftware.com> The URL included in the header appears to vary from curl version to curl version. Since we only care about the final few lines, only test them. However, make sure the blank line after the header is still included to make sure there are no extra cookie lines. Signed-off-by: Brian Gernhardt --- I suppose a sed invocation to strip out the URL or comments might be better, but this seemed simpler. t/t5551-http-fetch.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh index 287d22b..8196af1 100755 --- a/t/t5551-http-fetch.sh +++ b/t/t5551-http-fetch.sh @@ -191,9 +191,6 @@ cat >cookies.txt <expect_cookies.txt < cookies_tail.txt + test_cmp expect_cookies.txt cookies_tail.txt ' test -n "$GIT_TEST_LONG" && test_set_prereq EXPENSIVE -- 1.8.4.rc1.384.g0976a17.dirty