From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Gernhardt Subject: [PATCH 3/3] t5551: Remove header from curl cookie file Date: Mon, 5 Aug 2013 11:59:24 -0400 Message-ID: <1375718364-13824-4-git-send-email-brian@gernhardtsoftware.com> References: <1375718364-13824-1-git-send-email-brian@gernhardtsoftware.com> Cc: Junio C Hamano , Dave Borowitz To: Git List X-From: git-owner@vger.kernel.org Mon Aug 05 17:59:54 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V6NCK-0000u2-Dr for gcvg-git-2@plane.gmane.org; Mon, 05 Aug 2013 17:59:52 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754107Ab3HEP7q (ORCPT ); Mon, 5 Aug 2013 11:59:46 -0400 Received: from vs072.rosehosting.com ([216.114.78.72]:48908 "EHLO silverinsanity.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753916Ab3HEP7o (ORCPT ); Mon, 5 Aug 2013 11:59:44 -0400 Received: by silverinsanity.com (Postfix, from userid 5001) id 7640F27362F5; Mon, 5 Aug 2013 15:59:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on silverinsanity.com X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.5 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from localhost.localdomain (cpe-142-105-190-134.rochester.res.rr.com [142.105.190.134]) by silverinsanity.com (Postfix) with ESMTPA id C79ED2736194; Mon, 5 Aug 2013 15:59:38 +0000 (UTC) X-Mailer: git-send-email 1.8.4.rc1.384.g0976a17.dirty In-Reply-To: <1375718364-13824-1-git-send-email-brian@gernhardtsoftware.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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