From patchwork Wed Jul 29 23:14:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "brian m. carlson" X-Patchwork-Id: 11691907 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6870722 for ; Wed, 29 Jul 2020 23:15:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C575B207F5 for ; Wed, 29 Jul 2020 23:15:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.b="YC9JxOfh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728200AbgG2XPe (ORCPT ); Wed, 29 Jul 2020 19:15:34 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:41112 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728100AbgG2XPD (ORCPT ); Wed, 29 Jul 2020 19:15:03 -0400 Received: from camp.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:b610:a2f0:36c1:12e3]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id 6ECA461016; Wed, 29 Jul 2020 23:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1596064498; bh=09rgrcCD/TLi0jQrtn9n+YVsuADBEadhXt5jrJbIyoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Reply-To: Subject:Date:To:CC:Resent-Date:Resent-From:Resent-To:Resent-Cc: In-Reply-To:References:Content-Type:Content-Disposition; b=YC9JxOfh1nKfWiFkXzcPTPbaBjzuExfhVBaxtDWmmlO5dFcmWrWdMFNlYYOBLTf2O yzGa0PHwV2g+P/wsEv69l3LUA03SV9edYaGW9aYnhIjY0XX6nQ/M8mUZ4EIQ1ije1B 6zzSPeEgwhZRPfSjH9nNJXLF1V8FKpx1tDZpL/u2mHDQReGMFeidoNKDn0ai1psZQQ mF0ebwz4UHKWJcuLzkprIKjcYhnd4wV5+6pJOcOdqzdAERPs1Q5ZkrMr49A7NLKcfx JQw3s4VxDJZsfZQ1Mrgv76QcGFFbJL+5edWLzTyVwzL1m53J+BnuogAcA1c9uJ+WDx oAV0taEjMOw/6NsEJeIV43BxUhLJkG2FaBReHngfdtSRx17LzjqovszsDSEsgYweTy d0YlK81jf5sCmdnwkBvAgxIsu9x9JlAOGlGpM7sjfTsLK47EraMEv0kOAX3/wAyVQB Fjdi6zJWmtQVk4wCZZQzt1piX818fvg9E/l58YqptaCWF2z2Lai From: "brian m. carlson" To: Cc: Eric Sunshine Subject: [PATCH v6 28/39] t0410: mark test with SHA1 prerequisite Date: Wed, 29 Jul 2020 23:14:17 +0000 Message-Id: <20200729231428.3658647-29-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6 In-Reply-To: <20200729231428.3658647-1-sandals@crustytoothpaste.net> References: <20200728233446.3066485-1-sandals@crustytoothpaste.net> <20200729231428.3658647-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org These tests try to check that we behave properly if we encounter a repository with version 0 but an extension. This is a laudable goal, but the test cannot work with SHA-256, since SHA-256 repositories always have an existing extension and are never version 0. Add a SHA1 prerequisite to these tests. Signed-off-by: brian m. carlson --- t/t0410-partial-clone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t0410-partial-clone.sh b/t/t0410-partial-clone.sh index 6aa0f313bd..a5ebdf9ff3 100755 --- a/t/t0410-partial-clone.sh +++ b/t/t0410-partial-clone.sh @@ -42,7 +42,7 @@ test_expect_success 'convert shallow clone to partial clone' ' test_cmp_config -C client 1 core.repositoryformatversion ' -test_expect_success 'convert to partial clone with noop extension' ' +test_expect_success SHA1 'convert to partial clone with noop extension' ' rm -fr server client && test_create_repo server && test_commit -C server my_commit 1 && @@ -53,7 +53,7 @@ test_expect_success 'convert to partial clone with noop extension' ' git -C client fetch --unshallow --filter="blob:none" ' -test_expect_success 'converting to partial clone fails with unrecognized extension' ' +test_expect_success SHA1 'converting to partial clone fails with unrecognized extension' ' rm -fr server client && test_create_repo server && test_commit -C server my_commit 1 &&