From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekqNU-0001IA-4A for qemu-devel@nongnu.org; Sun, 11 Feb 2018 07:05:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekqNP-0003Qb-JU for qemu-devel@nongnu.org; Sun, 11 Feb 2018 07:05:04 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39656 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekqNP-0003Pu-Ds for qemu-devel@nongnu.org; Sun, 11 Feb 2018 07:04:59 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2C64EEAE8B for ; Sun, 11 Feb 2018 12:04:54 +0000 (UTC) From: Markus Armbruster References: <20180211004013.10784-1-eblake@redhat.com> <20180211004013.10784-2-eblake@redhat.com> Date: Sun, 11 Feb 2018 13:04:48 +0100 In-Reply-To: <20180211004013.10784-2-eblake@redhat.com> (Eric Blake's message of "Sat, 10 Feb 2018 18:40:11 -0600") Message-ID: <87inb3g2an.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/3] qapi: Pass '-u' when doing non-silent diff List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org Eric Blake writes: > Ed-script diffs are awful compared to context diffs. Fix another > 'diff -q' while in the area (if the files are different, being > noisy makes it easier to diagnose why). > > Fixes: 46ec4fce > Signed-off-by: Eric Blake > --- > tests/Makefile.include | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tests/Makefile.include b/tests/Makefile.include > index f41da235aef..375f31b5bc0 100644 > --- a/tests/Makefile.include > +++ b/tests/Makefile.include > @@ -919,14 +919,14 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json > $^ >$*.test.out 2>$*.test.err; \ > echo $$? >$*.test.exit, \ > "TEST","$*.out") > - @diff $(SRC_PATH)/$*.out $*.test.out > + @diff -u $(SRC_PATH)/$*.out $*.test.out > @# Sanitize error messages (make them independent of build directory) > - @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff $(SRC_PATH)/$*.err - > - @diff $(SRC_PATH)/$*.exit $*.test.exit > + @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -u $(SRC_PATH)/$*.err - > + @diff -u $(SRC_PATH)/$*.exit $*.test.exit Let's diff .err before .out, because when .err differs, .out is usually useless. > > .PHONY: check-tests/qapi-schema/doc-good.texi > check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi > - @diff -q $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< > + @diff -u $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< > > # Consolidated targets