From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E63D0C4345A for ; Thu, 23 Jul 2020 01:10:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B85A22053B for ; Thu, 23 Jul 2020 01:10:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (3072-bit key) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.b="fwMfNXIm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387540AbgGWBKT (ORCPT ); Wed, 22 Jul 2020 21:10:19 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:40488 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387462AbgGWBJ5 (ORCPT ); Wed, 22 Jul 2020 21:09:57 -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 5AC5960AFD for ; Thu, 23 Jul 2020 01:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1595466595; bh=yDq9JkAob5CN6OtKhGSEUlUn/KLbh77oniXGmR3KHc4=; h=From:To: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=fwMfNXImVvWtEjSmO4XvreCepygKkUdzfpHywHILHGri27EVex80jgRCzQWGT/Y/P jViU7fXVisLsTowsvf+ThzBmV8QXASo3z75e/BdyVwL8Oa4BPaU+/6vZLExDDYi2YT /9Z5ZyFN1gAhonjQjKAOW+IBAzQvuOEghFFvlZQoufhA34EF4nQTRCFCvjRvuHub64 g3bgwxmNgx90/OnbtS0h7cEJxpnAuaSfI/fOVGt4ggf2dIZPkF9y3ovPOmIcVdDB1N ACBgJclhax0PIE1U5hQv9Sl3f3ITo+doCUKxUP+eDDEBB0F9fGtUl6qglPOhp6tEqu aL1CSoFj/n+ur5vGsoKmCoIknhVlGu5/nhBXP3e5fiAlizVLDEYxK4v5eUazDwzqJE 23R+y9im6aizbvVD/AzGB4ylxUZlGto7tSzAZQZYx3hKED7UplNYdhVbPjP4DlCkPS Vcd9kwXbOBtXFpWRisIjFX9FZF9E9O8eCjEPgmNRFsy5NAA5csH From: "brian m. carlson" To: Subject: [PATCH v3 11/39] t7063: make hash size independent Date: Thu, 23 Jul 2020 01:09:15 +0000 Message-Id: <20200723010943.2329634-12-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.28.0.rc1.129.ge9626dbbb9f In-Reply-To: <20200723010943.2329634-1-sandals@crustytoothpaste.net> References: <20200723010943.2329634-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Use test_oid instead of hard-coding a fixed size all-zeros object ID. Signed-off-by: brian m. carlson --- t/t7063-status-untracked-cache.sh | 151 ++++++++++++++++-------------- 1 file changed, 81 insertions(+), 70 deletions(-) diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh index 428cff9cf3..c713c0dc3f 100755 --- a/t/t7063-status-untracked-cache.sh +++ b/t/t7063-status-untracked-cache.sh @@ -75,14 +75,24 @@ test_expect_success 'setup' ' touch one two three done/one dtwo/two dthree/three && git add one two done/one && : >.git/info/exclude && - git update-index --untracked-cache + git update-index --untracked-cache && + test_oid_cache <<-EOF + root sha1:e6fcc8f2ee31bae321d66afd183fcb7237afae6e + root sha256:b90c672088c015b9c83876e919da311bad4cd39639fb139f988af6a11493b974 + + exclude sha1:13263c0978fb9fad16b2d580fb800b6d811c3ff0 + exclude sha256:fe4aaa1bbbbce4cb8f73426748a14c5ad6026b26f90505a0bf2494b165a5b76c + + done sha1:1946f0437f90c5005533cbe1736a6451ca301714 + done sha256:7f079501d79f665b3acc50f5e0e9e94509084d5032ac20113a37dd5029b757cc + EOF ' test_expect_success 'untracked cache is empty' ' test-tool dump-untracked-cache >../actual && cat >../expect-empty <../dump.expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect <../actual && cat >../expect-from-test-dump <../actual && @@ -806,8 +817,8 @@ test_expect_success '"status" after file replacement should be clean with UC=tru test-tool dump-untracked-cache >../actual && grep -F "recurse valid" ../actual >../actual.grep && cat >../expect.grep <