From: Jonathan Nieder Date: Tue, 13 Jun 2017 23:08:03 GMT Subject: Re: [PATCH 8/8] t0012: test "-h" with builtins Message-ID: <20170613230803.GP133952@aiede.mtv.corp.google.com> In-Reply-To: <20170530051930.pqywvihwl5klg7hz@sigill.intra.peff.net> Hi, Jeff King wrote: > --- a/t/t0012-help.sh > +++ b/t/t0012-help.sh > @@ -49,4 +49,16 @@ test_expect_success "--help does not work for guides" " > test_i18ncmp expect actual > " > > +test_expect_success 'generate builtin list' ' > + git --list-builtins >builtins > +' > + > +while read builtin > +do > + test_expect_success "$builtin can handle -h" ' > + test_expect_code 129 git $builtin -h >output 2>&1 && > + test_i18ngrep usage output > + ' > +done