Re: [PATCH] sequencer: detect author name errors in read_author_script()
- From
Jeff King <peff@peff.net>
- Date
- Oct 3, 2022, 17:39 UTC
- Message-ID
- <YzseUy8bRT0LN2Wp@coredump.intra.peff.net>
- In-Reply-To
- <YzsbiRcCEaJUGwdp@coredump.intra.peff.net>
On Mon, Oct 03, 2022 at 01:27:37PM -0400, Jeff King wrote:
Show 15 quoted lines
> -check_broken_author 'unknown key in author-script' '
> +test_expect_success 'unknown key in author-script' '
> + create_conflict &&
> +
> echo "GIT_AUTHOR_BOGUS=${SQ}whatever${SQ}" \
> - >>.git/rebase-merge/author-script'
> + >>.git/rebase-merge/author-script &&
>
> + check_resolve_fails
> +'
>
> test_done
>
> That makes the boilerplate shorter in the "-v" output but focuses on the
> actual modification that breaks the author-script.Note that we do still keep the ${SQ} bits here. They're necessary for the same reason: before and after a snippet is being passed through a variable. Whereas in yours we'd use stdin. I _do_ like that approach in general, but it is unlike the rest of the test suite. Maybe it's worth resurrecting:
https://lore.kernel.org/git/YHDUg6ZR5vu93kGm@coredump.intra.peff.net/
?
-Peff