From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id F09861F403 for ; Mon, 3 Oct 2022 17:40:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229592AbiJCRkG (ORCPT ); Mon, 3 Oct 2022 13:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiJCRjh (ORCPT ); Mon, 3 Oct 2022 13:39:37 -0400 Received: from cloud.peff.net (cloud.peff.net [104.130.231.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ECD212AB5 for ; Mon, 3 Oct 2022 10:39:32 -0700 (PDT) Received: (qmail 32506 invoked by uid 109); 3 Oct 2022 17:39:32 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Mon, 03 Oct 2022 17:39:32 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 27241 invoked by uid 111); 3 Oct 2022 17:39:32 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Mon, 03 Oct 2022 13:39:32 -0400 Authentication-Results: peff.net; auth=none Date: Mon, 3 Oct 2022 13:39:31 -0400 From: Jeff King To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: "Michael V. Scovetta" , Phillip Wood , git@vger.kernel.org Subject: Re: [PATCH] sequencer: detect author name errors in read_author_script() Message-ID: References: <221003.86k05htf84.gmgdl@evledraar.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Oct 03, 2022 at 01:27:37PM -0400, Jeff King wrote: > -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