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

Re: [PATCH 2/3] Testing: XDG config files: Use "$HOME" and "$XDG_CONFIG_HOME" explicitly

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jul 17, 2012, 18:19 UTC
Message-ID
<vpqehoap7x7.fsf@bauges.imag.fr>
In-Reply-To
<e118f47351094d4fb45dd34bc08b9e9b-mfwitten@gmail.com>
Michael Witten <mfwitten@gmail.com> writes:
Show 10 quoted lines
> The tests in:
>
>   t/t1306-xdg-files.sh
>
> relied on brittle conventions:
>
>   * "$HOME" and "$XDG_CONFIG_HOME" having certain values.
>
>   * The testing commands having a certain current working
>     directory;

Other tests (t1305-config-include.sh at least) use the fact that the tests are ran in $HOME. I'm not sure if we want to change that.

About XDG_CONFIG_HOME, the tests were just assuming it was unset.
> +GIT_CONFIG_DIR=$XDG_CONFIG_HOME/git

As I said in my earlier message, I'd rather test the default value ($HOME/.config/git) than the particular case whe $XDG_CONFIG_HOME is set.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Michael WittenNext: Michael Witten
Message 7 of 8 in “Testing: XDG config files: Fix broken tests”
  1. 0/3 Testing: XDG config files: Fix broken testsMichael Witten, Jul 17, 2012
  2. 1/3 Testing: XDG config files: Export a suitable `XDG_CONFIG_HOME' environment variableMichael Witten, Jul 17, 2012
  3. Jonathan NiederJul 17, 2012
  4. Matthieu MoyJul 17, 2012
  5. Junio C HamanoJul 17, 2012
  6. 2/3 Testing: XDG config files: Use "$HOME" and "$XDG_CONFIG_HOME" explicitlyMichael Witten, Jul 17, 2012
  7. Matthieu MoyJul 17, 2012
  8. 3/3 Testing: XDG config files: Trivial: `xdg' -> `XDG'Michael Witten, Jul 17, 2012

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.