]> git.ipfire.org Git - thirdparty/git.git/commit
t6300: drop newline from wrapped test title
authorJeff King <peff@peff.net>
Mon, 9 Sep 2024 23:08:41 +0000 (19:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Sep 2024 23:26:09 +0000 (16:26 -0700)
commit87fbddd57e7a7c709d69ef5bb9cd3be208fc5f9d
tree53d4e9703bdc29c5388ae94c8989061497087347
parent4c42d5ff284067fa32837421408bebfef996bf81
t6300: drop newline from wrapped test title

We don't usually include newlines in test titles, because you get funny
TAP output like:

  ok 417 - show good signature with custom format
  ok 418 - show good signature with custom format
       with ssh
  ok 419 - signature atom with grade option and bad signature

where a TAP parser would ignore the extra line anyway, giving the wrong
title. This comes from 26c9c03f0a (ref-filter: add new "signature" atom,
2023-06-04), and I think it was probably just editor line wrapping.

I checked for other cases with:

  git grep "test_expect_success [A-Z_,]* '[^']*$"
  git grep 'test_expect_success [A-Z_,]* "[^"]*$'

but this was the only hit.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh