From patchwork Tue Jan 9 12:17:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Steinhardt X-Patchwork-Id: 13514882 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB4DB38DD6 for ; Tue, 9 Jan 2024 12:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="Q9Ol00LV"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="fvGZ0une" Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C73DA5C040A for ; Tue, 9 Jan 2024 07:17:27 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 09 Jan 2024 07:17:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1704802647; x=1704889047; bh=JLdKoPlrc5 jW0Cpx2Ws3HKBKhGoHfMLZNeBw3wpNJMM=; b=Q9Ol00LVdLYuIJjVXzRfsyrSnC cWHtt7VL6wFE4VoXOPseSFwxG0u6OBvNbmQkxDb33B6AguhyRwl2UxmTDd+0keDC jf+aDtwnNNJHVczAeJntbOBOBURZr0unfVvEuJw9yK3AKSmFdFiS9RUBmOtC7ttt 15vfRtFkPtjJiE09SO6LiAPOFZGO5KDkXQp4ztHzhbZchZZxTd0lNELmZYXyIHUG RX+5KCModZrEg4BYRqymoICwN5th9TVw011l6a902gDbvsn7qrQuU8/b5b2zwI5B IOMcGLANXmXWCkSgLuNGtu1QBxVPFkzjY/ebrjvEM2n8CuA3GRVOFZkwlkxA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704802647; x=1704889047; bh=JLdKoPlrc5jW0Cpx2Ws3HKBKhGoH fMLZNeBw3wpNJMM=; b=fvGZ0uneVJdXHKEXGaGel70m/fs3k//P3+cHUCRR1t+z fswdQzATwROayDvuGb5xe4KPYZbqO4HTyLmMljkfuVJDT8soRKuifRQ13e31Gwrf iPzWPZby45i6lQOB0291NA99pf0Qmm6yIXwsvQUK+CPfVWcpWDesZN8tpfwuSyvk SuZyXPDbjLzMs3jMuHZooiGz9kyRWvZBnZ07AOHkI6AT6v4cSsrpQSEusbDWUm4X ZvTio5GjzQCRnL42kvj8whM4bxnZylk3edIEdRNHRoS3BXqKOUwwD7hkN4TCemoI ZglYljNQeX21VzwD6cnJ2cGL2nTFlcmtdTM9EaH8nw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdehledgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheprfgrthhrihgtkhcuufhtvghinhhhrghrughtuceophhssehp khhsrdhimheqnecuggftrfgrthhtvghrnhepheeghfdtfeeuffehkefgffduleffjedthf dvjeektdfhhedvlefgtefgvdettdfhnecuvehluhhsthgvrhfuihiivgepudenucfrrghr rghmpehmrghilhhfrhhomhepphhssehpkhhsrdhimh X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 9 Jan 2024 07:17:27 -0500 (EST) Received: by vm-mail (OpenSMTPD) with ESMTPSA id e92365c3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 9 Jan 2024 12:14:48 +0000 (UTC) Date: Tue, 9 Jan 2024 13:17:25 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Subject: [PATCH 6/6] t: mark tests regarding git-pack-refs(1) to be backend specific Message-ID: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Both t1409 and t3210 exercise parts of git-pack-refs(1). Given that we must check the on-disk files to verify whether the backend has indeed packed refs as expected those test suites are deeply tied to the actual backend that is in use. Mark the test suites to depend on the REFFILES backend. Signed-off-by: Patrick Steinhardt --- t/t1409-avoid-packing-refs.sh | 6 ++++++ t/t3210-pack-refs.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/t/t1409-avoid-packing-refs.sh b/t/t1409-avoid-packing-refs.sh index f23c0152a8..7748973733 100755 --- a/t/t1409-avoid-packing-refs.sh +++ b/t/t1409-avoid-packing-refs.sh @@ -5,6 +5,12 @@ test_description='avoid rewriting packed-refs unnecessarily' TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh +if test_have_prereq !REFFILES +then + skip_all='skipping files-backend specific pack-refs tests' + test_done +fi + # Add an identifying mark to the packed-refs file header line. This # shouldn't upset readers, and it should be omitted if the file is # ever rewritten. diff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh index 7f4e98db7d..c0f1f9cfb7 100755 --- a/t/t3210-pack-refs.sh +++ b/t/t3210-pack-refs.sh @@ -15,6 +15,12 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh +if test_have_prereq !REFFILES +then + skip_all='skipping files-backend specific pack-refs tests' + test_done +fi + test_expect_success 'enable reflogs' ' git config core.logallrefupdates true '