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=-5.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 8EA781F8C6 for ; Mon, 13 Sep 2021 19:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242078AbhIMTWt (ORCPT ); Mon, 13 Sep 2021 15:22:49 -0400 Received: from smtp.hosts.co.uk ([85.233.160.19]:28502 "EHLO smtp.hosts.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241829AbhIMTWr (ORCPT ); Mon, 13 Sep 2021 15:22:47 -0400 Received: from host-84-13-154-214.opaltelecom.net ([84.13.154.214] helo=[192.168.1.37]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1mPrWD-0009ye-79; Mon, 13 Sep 2021 20:21:29 +0100 Subject: Re: [PATCH v2 3/5] help tests: add test for --config output To: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , git@vger.kernel.org Cc: Junio C Hamano , =?UTF-8?B?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= , =?UTF-8?Q?SZEDER_G=c3=a1bor?= , Eric Sunshine References: From: Philip Oakley Message-ID: Date: Mon, 13 Sep 2021 20:21:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 10/09/2021 12:28, Ævar Arnfjörð Bjarmason wrote: > Add a missing test for checking what the --config output added in > ac68a93fd2 (help: add --config to list all available config, This ref should be 3ac68a93fd2 Probable hand editing mistake - it's Ok in 4/5 > 2018-05-26) looks like. We should not be emitting anything except > config variables and the brief usage information at the end here. > > Signed-off-by: Ævar Arnfjörð Bjarmason > --- > t/t0012-help.sh | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/t/t0012-help.sh b/t/t0012-help.sh > index c3aa016fd30..595bf81f133 100755 > --- a/t/t0012-help.sh > +++ b/t/t0012-help.sh > @@ -77,6 +77,19 @@ test_expect_success 'git help -g' ' > test_i18ngrep "^ tutorial " help.output > ' > > +test_expect_success 'git help -c' ' > + git help -c >help.output && > + cat >expect <<-\EOF && > + > + '"'"'git help config'"'"' for more information > + EOF > + grep -v -E \ > + -e "^[^.]+\.[^.]+$" \ > + -e "^[^.]+\.[^.]+\.[^.]+$" \ > + help.output >actual && > + test_cmp expect actual > +' > + > test_expect_success 'generate builtin list' ' > git --list-cmds=builtins >builtins > '