From: Matheus Tavares Bernardino Date: Tue, 20 Oct 2020 13:18:59 GMT Subject: Re: [PATCH v2 16/19] parallel-checkout: add tests for basic operations Message-ID: In-Reply-To: <20201020025525.GG54484@nand.local> On Mon, Oct 19, 2020 at 11:55 PM Taylor Blau wrote: > > On Mon, Oct 19, 2020 at 06:35:58PM -0700, Jonathan Nieder wrote: > > > + > > > + # Check that the expected number of workers has been used. Note that it > > > + # can be different than the requested number in two cases: when the > > > + # quantity of entries to be checked out is less than the number of > > > + # workers; and when the threshold has not been reached. > > > + # > > > + local workers_in_trace=$(grep "child_start\[.\+\] git checkout--helper" trace | wc -l) && > > > > Do we use grep's \+ operator in other tests? I thought we preferred to > > use the more portable *, but it may be that I'm out of date. > > You're not out-of-date; I looked at this myself a couple of months ago: > > https://lore.kernel.org/git/20200812140352.GC74542@syl.lan/ Thanks for the pointer, I'll replace .\+ by ..*, then. I noticed we also have some uses of + and ? in tests, with `grep -E` (or egrep). Are we OK with ERE or did these maybe just slip in by accident?