Re: [PATCH v3] backfill: handle unexpected arguments
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 11 quoted lines
>> +test_expect_success 'backfill rejects unexpected arguments' '
>> + test_must_fail git -C backfill1 backfill unexpected-arg >err 2>&1 &&
>> + grep "unknown argument .*unexpected-arg" err &&
>> + ! grep "Minimum number of objects" err
>
> Using test_grep would make test failures easier to debug as it prints a
> diagnostic message if it fails. Note that "! grep" should become
> "test_grep !" to ensure the diagnostic message is printed when the
> expression matches.
>
> Thanks
Great suggestion. Thanks.