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

Re: Fixing constant preference prompts during tests

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 26, 2018, 21:48 UTC
Message-ID
<xmqqa7o4j5fi.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180926213703.GA22278@SDF.ORG>
Tacitus Aedifex <aedifex@sdf.org> writes:
> It may be a little more complicated than this because looking at the
> tests it seems like they set up their own dummy user with dummy keys
> and use gpg directly.

Yes, that is """the test framework (t/test-lib.sh, t/lib-gpg.sh, etc.) tries to run our tests in a stable environment that is not affected by real $HOME etc. owned by the user who happens to be running the tests, but it could be that your copy of GnuPG may require a bit more seeding than we do in our test framework to squelch that preference prompt.""" part in my earlier response tried to say. We do not want your choice of gpg.program or what kind of trust you have personally recorded in your ~/.gnupg/ affect how gpg invoked inside our tests work.

Previous: Tacitus AedifexNext: Tacitus Aedifex
Message 4 of 6 in “Fixing constant preference prompts during tests”
  1. Tacitus AedifexSep 26, 2018
  2. Junio C HamanoSep 26, 2018
  3. Tacitus AedifexSep 26, 2018
  4. Junio C HamanoSep 26, 2018
  5. Tacitus AedifexSep 27, 2018
  6. brian m. carlsonSep 27, 2018

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.