From patchwork Mon Aug 21 20:06:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hesse X-Patchwork-Id: 13359778 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B16EEE49A0 for ; Mon, 21 Aug 2023 20:14:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230028AbjHUUOE (ORCPT ); Mon, 21 Aug 2023 16:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjHUUOC (ORCPT ); Mon, 21 Aug 2023 16:14:02 -0400 X-Greylist: delayed 422 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 21 Aug 2023 13:13:56 PDT Received: from mx.mylinuxtime.de (mx.mylinuxtime.de [88.99.235.251]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9BABE3 for ; Mon, 21 Aug 2023 13:13:56 -0700 (PDT) Received: from leda.eworm.de (p54b794e3.dip0.t-ipconnect.de [84.183.148.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 3E12E22AC89; Mon, 21 Aug 2023 22:06:51 +0200 (CEST) Received: by leda.eworm.de (Postfix, from userid 1000) id D0F9A181247; Mon, 21 Aug 2023 22:06:50 +0200 (CEST) From: Christian Hesse To: Git Mailing List Cc: Christian Hesse Subject: [PATCH 1/1] t6300: fix match with insecure memory Date: Mon, 21 Aug 2023 22:06:45 +0200 Message-ID: <20230821200645.36796-1-list@eworm.de> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Christian Hesse Running the tests in a build environment makes gnupg print a warning: gpg: Warning: using insecure memory! This warning breaks the match, as `head` misses one line. Let's strip the line, make `head` return what is expected and fix the match. Signed-off-by: Christian Hesse --- t/t6300-for-each-ref.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh index 5b434ab451..488e358c8c 100755 --- a/t/t6300-for-each-ref.sh +++ b/t/t6300-for-each-ref.sh @@ -1764,7 +1764,7 @@ test_expect_success GPGSSH 'setup for signature atom using ssh' ' test_expect_success GPG2 'bare signature atom' ' git verify-commit first-signed 2>out.raw && - grep -Ev "checking the trustdb|PGP trust model" out.raw >out && + grep -Ev "checking the trustdb|PGP trust model|using insecure memory" out.raw >out && head -3 out >expect && tail -1 out >>expect && echo >>expect &&