git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] t5607: avoid using prerequisites to select algorithm

From
Jeff King <peff@peff.net>
Date
Aug 11, 2021, 23:30 UTC
Message-ID
<YRRdjgzjokT1nQmG@coredump.intra.peff.net>
In-Reply-To
<20210811231644.570030-1-sandals@crustytoothpaste.net>
On Wed, Aug 11, 2021 at 11:16:44PM +0000, brian m. carlson wrote:
Show 11 quoted lines
> In this test, we currently use the SHA1 prerequisite to specify the
> algorithm we're using to test, since SHA-256 bundles are always v3,
> whereas SHA-1 bundles default to v2, and as a result the default output
> differs.
> 
> However, this causes a problem if we run with GIT_TEST_FAIL_PREREQS set,
> since that means that we'll unexpectedly fail the SHA1 prerequisite,
> resulting in incorrect expected output.  Let's fix this by checking
> against the built-in data called "algo", which tells us which algorithm
> is in use.  This should work in any situation, making our test a little
> more robust.
Thanks, this seems like a reasonable step, and fixes the test for me.

I still get tons of other failures because I set GIT_TEST_HTTPD=yes, which implies to me we should still be fixing GIT_TEST_FAIL_PREREQS. But I am happy to take this in the meantime for people who do care.

-Peff
Previous: brian m. carlson
Message 5 of 5 in “t5607 fail with GIT_TEST_FAIL_PREREQS enabled”
  1. Son Luong NgocAug 11, 2021
  2. Jeff KingAug 11, 2021
  3. brian m. carlsonAug 11, 2021
  4. t5607: avoid using prerequisites to select algorithmbrian m. carlson, Aug 11, 2021
  5. Jeff KingAug 11, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.