Re: [PATCH 14/15] t1006 (cat-file): use test_cmp
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 7, 2011, 22:01 UTC
- Message-ID
- <20111207220127.GE2911@elie.hsd1.il.comcast.net>
- In-Reply-To
- <1323286611-4806-15-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra wrote:
Show 7 quoted lines
> Use test_cmp in preference to repeatedly comparing command outputs by > hand. > > Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> > --- > t/t1006-cat-file.sh | 53 +++++++++++--------------------------------------- > 1 files changed, 12 insertions(+), 41 deletions(-)
I guess test_cmp didn't exist yet when this code was written, though that doesn't explain why "diff" or "cmp" was not used.
Doesn't this miss some other instances of the
test $expect = $actual
idiom in the same test script? What distinguishes the cases that you fixed from the ones skipped, and is it worth an inconsistent style to convert some without the others?