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

Re: [RFC PATCH v1] t/README: the test repo does not have global or system configs

From
Philip Oakley <philipoakley@iee.email>
Date
Oct 16, 2019, 19:08 UTC
Message-ID
<dc8afd1b-2e69-e54d-aee9-e5d6c4b729f5@iee.email>
In-Reply-To
<20191016164707.GW29845@szeder.dev>
On 16/10/2019 17:47, SZEDER Gábor wrote:
Show 12 quoted lines
> On Wed, Oct 16, 2019 at 01:45:15PM +0100, Philip Oakley wrote:
>> Signed-off-by: Philip Oakley <philipoakley@iee.email>
>> ---
>>
>> While tring to get to grips with some Git-for-Windows config settings
>> for testing >4GiB files, I couldn't find any note in the readme about
>> the test system config file sources.
> The path of the system config file is determined at compile time, with
> no way to override it at runtime.  Since we don't want external config
> files influencing our tests, the only choice we have is to ignore the
> system config file; that's why our test framework sets
> GIT_CONFIG_NOSYSTEM=1.
Thanks.
Show 24 quoted lines
>> Is this the right place for the information, is it complete enough,
>> and is the default config template special?
>>
>>   t/README | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/t/README b/t/README
>> index 60d5b77bcc..3daa1fa182 100644
>> --- a/t/README
>> +++ b/t/README
>> @@ -485,6 +485,9 @@ This test harness library does the following things:
>>      the --root option documented above, and a '.stress-<N>' suffix
>>      appended by the --stress option.
>>   
>> + - The --global and --system config files are ignored, and
>> +   a basic --local config is created in the tst repository.
> s/tst/test/
>
> However, note that the global config file isn't really ignored, but
> different.  The path of the global config file depends on the values
> of the env variables $XDG_CONFIG_HOME and $HOME, and, again, to avoid
> external influences, our test framework unsets the former, and
> overrides the latter with HOME="$TRASH_DIRECTORY".  IOW the global
> config file in our tests is '.../t/trash directory.t1234-foo/.gitconfig'.
Thanks
Show 7 quoted lines
>> +
>>    - Defines standard test helper functions for your scripts to
>>      use.  These functions are designed to make all scripts behave
>>      consistently when command line arguments --verbose (or -v),
>> -- 
>> 2.23.0.windows.1.21.g947f504ebe8.dirty
>>

I'll revise the text with this clarifying information (rephrased to man page style)

Philip
Previous: SZEDER GáborNext: Philip Oakley
Message 3 of 5 in “t/README: the test repo does not have global or system configs”
  1. t/README: the test repo does not have global or system configsPhilip Oakley, Oct 16, 2019
  2. SZEDER GáborOct 16, 2019
  3. Philip OakleyOct 16, 2019
  4. t/README: the test repo does not have global or system configsPhilip Oakley, Oct 18, 2019
  5. Junio C HamanoOct 21, 2019

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.