Received: from eggs.gnu.org ([2001:4830:134:3::10]:58457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKlVC-0001uq-QF for qemu-devel@nongnu.org; Thu, 08 Nov 2018 09:41:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKlKe-0007hg-AF for qemu-devel@nongnu.org; Thu, 08 Nov 2018 09:30:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36182) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gKlKd-0007Dz-Tb for qemu-devel@nongnu.org; Thu, 08 Nov 2018 09:30:52 -0500 References: <20181105181353.39804-1-mst@redhat.com> <20181105181353.39804-3-mst@redhat.com> <20181106091147-mutt-send-email-mst@kernel.org> <4b68930c-1fc3-9462-8f9e-671b414e712d@redhat.com> <2913be5b-f03e-b42c-1128-8f73ae7054f7@redhat.com> <20181108102418.GE17083@stefanha-x1.localdomain> From: Laurent Vivier Message-ID: <33d7fb66-7fb5-e386-a786-1d0db89bae71@redhat.com> Date: Thu, 8 Nov 2018 15:30:15 +0100 MIME-Version: 1.0 In-Reply-To: <20181108102418.GE17083@stefanha-x1.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 02/33] tests: Move tests/hex-loader-check-data/ to tests/data/hex-loader/ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Peter Maydell , Thomas Huth , Su Hang , Paolo Bonzini On 08/11/2018 11:24, Stefan Hajnoczi wrote: > On Tue, Nov 06, 2018 at 05:16:14PM +0100, Laurent Vivier wrote: >> On 06/11/2018 16:15, Philippe Mathieu-Daud=C3=A9 wrote: >>> On 6/11/18 15:13, Michael S. Tsirkin wrote: >>>> On Tue, Nov 06, 2018 at 02:27:18PM +0100, Philippe Mathieu-Daud=C3=A9= wrote: >>>>> On 5/11/18 19:14, Michael S. Tsirkin wrote: >>>>>> From: Peter Maydell >>>>>> >>>>>> Currently tests/hex-loader-check-data contains data files used >>>>>> by the hexloader-test, and configure individually symlinks those >>>>>> data files into the build directory using a wildcard. >>>>>> >>>>>> Using a wildcard like this is a bad idea, because if a new >>>>>> data file is added, nothing causes configure to be rerun, >>>>>> and so no symlink is added for the new file. This can cause >>>>>> tests to spuriously fail when they can't find their data. >>>>>> Instead, it's better to symlink an entire directory of >>>>>> data files. We already have such a directory: tests/data. >>>>>> >>>>>> Move the data files from tests/hex-loader-check-data/ to >>>>>> tests/data/hex-loader/, and remove the unnecessary symlinking. >>>>>> >>>>>> Signed-off-by: Peter Maydell >>>>> >>>>> I reviewed/tested this patch too. >>>> >>>> >>>> Thanks a lot Philippe! >>>> It is unfortunately too late to update this patch info in git >>>> commit history, however your help is still greatly appreciated! >>> >>> No worry, I'm not mad at all, but there might be an issue in your git= PR >>> workflow, this series also missed your maintainer S-o-b. >>> >>> Peter: Can you add a such check in your scripts? (during next merge >>> window, no hurry). >>> >>> Rather than your scripts, this should be in scripts a maintainer can = run >>> locally, such ./scripts/checkpatch.pl --maintainer or >>> ./scripts/checkseries.xx. >> >> I think such tool already exists: with git-publish you can configure a >> "pre-publish-send-email" hook, and check your S-o-B is present. >=20 > For making my own commits .git/hooks/pre-commit is useful: > http://blog.vmsplice.net/2011/03/how-to-automatically-run-checkpatchpl.= html >=20 > For sending patch series, git-publish is useful: > https://github.com/stefanha/git-publish/blob/master/hooks/pre-publish-s= end-email.example > https://github.com/stefanha/git-publish/ A pre-publish-send-email like this should do the trick: #!/bin/bash NAME=3D$(git config --get user.name) EMAIL=3D$(git config --get user.email) for PATCH in $1/*.patch; do if [ $(basename $PATCH) =3D "0000-cover-letter.patch" ]; then continue fi if ! grep -q "^Signed-off-by: $NAME <$EMAIL>" $PATCH; then echo "Error: Missing sender S-o-B in $PATCH" exit 1 fi done exit 0