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

RE: [ANNOUNCE] Git v2.16.0-rc2 - breakages in t1308 and 1404

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Jan 12, 2018, 23:10 UTC
Message-ID
<008f01d38bfa$7eba9bc0$7c2fd340$@nexbridge.com>
In-Reply-To
<xmqqd12ewx1v.fsf@gitster.mtv.corp.google.com>
On January 12, 2018 5:08 PM, Junio C Hamano wrote:
Show 7 quoted lines
> "Randall S. Becker" <rsbecker@nexbridge.com> writes:
> > It looks like the exit code is coming back as 1 not 2. There is also a
> > file except vs expect.
> > ./trash directory.t1308-config-set: ls a-directory  actual  config2
> > except  expect  output  result
> 
> The test that leaves "except" does look wrong.  The relevant part looks
like
> this:
> 
>     test_expect_success 'find value with highest priority from a
configset' '
Show 17 quoted lines
>             echo hask >expect &&
>             test-config configset_get_value case.baz config2 .git/config
>actual &&
>             test_cmp expect actual
>     '
> 
>     test_expect_success 'find value_list for a key from a configset' '
>             cat >except <<-\EOF &&
>             sam
>             ...
>             EOF
>             test-config configset_get_value case.baz config2 .git/config
>actual &&
>             test_cmp expect actual
>     '
> 
> The invocations of test-config in these two tests look exactly the same,
at
Show 13 quoted lines
> least to me, so whatever comes out of the command and stored in 'actual'
> must match what the first test stored in 'expect'
> and compared the same as 'actual' in that test.
> 
> So the second test is probably asking a wrong question to test-config but
> because it prepares an expected answer in a wrong file, it did not even
> notice that it is asking a wrong question X-<.
> 
> The wrong test comes from 4c715ebb ("test-config: add tests for the
> config_set API", 2014-07-28); I do not know offhand if the author of that
> change is still around.
> 
> Having said all that, I suspect that the "except" thing may not have
anything
> to do with what you are observing; sorry for not ending up to be very
helpful
> X-<.

Sadly, fixing the "except" thing causes the test to break now. I can't make sense of the intent of this, unless the test is to find unmatching keys and it really does mean "except" --- expect 2018-01-12 23:03:41 +0000 +++ actual 2018-01-12 23:03:41 +0000

@@ -1,5 +1 @@
-sam
-bat
 hask
-lama
-ball

[case]
baz = lama
[my]
new = silk
[case]
baz = ball
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “RE: [ANNOUNCE] Git v2.16.0-rc2 - breakages in t1308 and 1404”
  1. Randall S. BeckerJan 12, 2018
  2. Junio C HamanoJan 12, 2018
  3. Randall S. BeckerJan 12, 2018
  4. Junio C HamanoJan 12, 2018
  5. Tanay AbhraJan 13, 2018
  6. Junio C HamanoJan 16, 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.