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: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id B3A151F8C6 for ; Sat, 10 Jul 2021 23:23:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbhGJXZw (ORCPT ); Sat, 10 Jul 2021 19:25:52 -0400 Received: from cloud.peff.net ([104.130.231.41]:45340 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbhGJXZv (ORCPT ); Sat, 10 Jul 2021 19:25:51 -0400 Received: (qmail 7413 invoked by uid 109); 10 Jul 2021 23:23:05 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Sat, 10 Jul 2021 23:23:05 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 27543 invoked by uid 111); 10 Jul 2021 23:23:04 -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; Sat, 10 Jul 2021 19:23:04 -0400 Authentication-Results: peff.net; auth=none Date: Sat, 10 Jul 2021 19:23:03 -0400 From: Jeff King To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: git@vger.kernel.org, Junio C Hamano , Gregory Anders , =?utf-8?B?xJBvw6BuIFRy4bqnbiBDw7RuZw==?= Danh , Eric Sunshine , Eric Wong , Felipe Contreras Subject: Re: [PATCH v5 02/13] send-email tests: test for boolean variables without a value Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, May 28, 2021 at 11:23:41AM +0200, Ævar Arnfjörð Bjarmason wrote: > +test_expect_success $PREREQ '--[no-]xmailer with sendemail.xmailer' ' > + test_when_finished "test_unconfig sendemail.xmailer" && > + cat >>.git/config <<-\EOF && > + [sendemail] > + xmailer > + EOF > + test_config sendemail.xmailer true && > + do_xmailer_test 1 "" && > + do_xmailer_test 0 "--no-xmailer" && > + do_xmailer_test 1 "--xmailer" > +' Is this test_config call in the middle of the snippet meant to be there? It seems like it would wreck the test, since it will rewrite the file to "xmailer = true". I'm guessing it's just leftover cruft from adapting the earlier xmailer=true test? (I wasn't looking carefully again at this series, but just happened to be resolving a local conflict involving this hunk and noticed it). -Peff