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

Re: [BUG] test suite broken with GIT_TEST_SPLIT_INDEX

From
Jeff King <peff@peff.net>
Date
Apr 21, 2017, 17:09 UTC
Message-ID
<20170421170943.tj5jcstj3yy27sev@sigill.intra.peff.net>
In-Reply-To
<CACsJy8ATvRgOZPpy9_SznvFXm5imJNbcqMSAYSw4H633rqRjEw@mail.gmail.com>
On Fri, Apr 21, 2017 at 07:25:21PM +0700, Duy Nguyen wrote:
Show 13 quoted lines
> >> Yeah, you are right.
> >> It looks like we have GIT_TEST_OPTS to pass options like --debug,
> >> --valgrind, --verbose, but we don't have an environment variable to
> >> set config options.
> >
> > Or maybe GIT_CONFIG_PARAMETERS works for this purpose?
> 
> It has to be set inside test-lib.sh, not from outside because
> environment variables from outside are filtered if I remember
> correctly and only a few specials plus those GIT_TEST_ can survive.
> Some tests override GIT_CONFIG_PARAMETERS themselves to pass config
> vars to certain command (I know because I just did a couple days ago
> ;).which loses core.splitIndex.

It does seem reasonable to have a GIT_TEST_REPO_CONFIG that sets some variables by default in the trash repository created by test_create_repo.

That doesn't quite catch everything, because a few tests make their own sub-repos. But those cases are usually testing something very specific anyway.

-Peff
Previous: Duy NguyenNext: Christian Couder
Message 9 of 16 in “[BUG] test suite broken with GIT_TEST_SPLIT_INDEX”
  1. Thomas GummererApr 20, 2017
  2. Christian CouderApr 20, 2017
  3. Thomas GummererApr 20, 2017
  4. Christian CouderApr 21, 2017
  5. Duy NguyenApr 21, 2017
  6. Christian CouderApr 21, 2017
  7. Christian CouderApr 21, 2017
  8. Duy NguyenApr 21, 2017
  9. Jeff KingApr 21, 2017
  10. Christian CouderApr 21, 2017
  11. Christian CouderApr 21, 2017
  12. Jeff KingApr 21, 2017
  13. Thomas GummererApr 24, 2017
  14. Junio C HamanoApr 21, 2017
  15. Christian CouderApr 21, 2017
  16. Jeff KingApr 20, 2017

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.