Re: [PATCH 2/2] t5516/t5601: be less strict about the number of credential warnings
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Nov 1, 2022, 00:57 UTC
- Message-ID
- <Y2BvCMlWNKnKR6OE@nand.local>
- In-Reply-To
- <Y2BYyB3H9n2LDo/E@coredump.intra.peff.net>
On Mon, Oct 31, 2022 at 07:22:48PM -0400, Jeff King wrote:
Show 16 quoted lines
> > diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh > > index 8dd4610a8c2..980c594940b 100755 > > --- a/t/t5516-fetch-push.sh > > +++ b/t/t5516-fetch-push.sh > > @@ -1860,15 +1860,15 @@ test_expect_success LIBCURL 'fetch warns or fails when using username:password' > > > > test_must_fail git -c transfer.credentialsInUrl=warn fetch https://username:password@224.0.0.1 2>err && > > grep "warning: $message" err >warnings && > > - test_line_count = 3 warnings && > > + test_line_count -ge 1 warnings && > > I think this test_line_count (and all the others) is now superfluous; > the exit code of grep will tell us if we found anything. > > I don't mind it too much, though, if we're planning to fix the duplicate > messages, at which point it becomes s/-ge/=/.
Yeah, agreed. Let's leave it alone, unless somebody else feels strongly.
Thanks, Taylor