From: Eric Blake <eblake@redhat.com>
To: Yonggang Luo <luoyonggang@gmail.com>, qemu-devel@nongnu.org
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [PATCH v2] meson: Use -b to ignore CR vs. CR-LF issues on Windows
Date: Tue, 8 Sep 2020 07:42:24 -0500 [thread overview]
Message-ID: <4cd42e60-03c3-ced3-284f-bc6fad2780f0@redhat.com> (raw)
In-Reply-To: <20200907174828.1768-1-luoyonggang@gmail.com>
On 9/7/20 12:48 PM, Yonggang Luo wrote:
> Or the tests result would cause following test failure:
> Running test QAPI doc
> LINK tests/check-qdict.exe
> --- C:/Users/ContainerAdministrator/AppData/Local/Temp/qemu-build/../cirrus-ci-build/tests/qapi-schema/doc-good.texi 2020-09-02 10:26:02.396028200 -0700
> +++ C:/Users/ContainerAdministrator/AppData/Local/Temp/qemu-build/tests/qapi-schema/doc-good-qapi-doc.texi 2020-09-02 10:43:09.849568200 -0700
> @@ -1,319 +1,319 @@
> -@c AUTOMATICALLY GENERATED, DO NOT MODIFY
> -
> -
> +@c AUTOMATICALLY GENERATED, DO NOT MODIFY
> +@end deftypefn
> +
> make: *** [Makefile.mtest:85: check-qapi-doc] Error 1
> make: *** Waiting for unfinished jobs....
>
> Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
> ---
> tests/qapi-schema/meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Commit message is tooooo long compared to the body of the patch. I'd
suggest:
meson: Use -b to ignore CR vs. CR-LF issues on Windows
On windows, a difference in line endings causes testsuite failures
complaining that every single line in files such as
'tests/qapi-schemadoc-good.texi' is wrong. Fix it by adding -b to diff.
>
> diff --git a/tests/qapi-schema/meson.build b/tests/qapi-schema/meson.build
> index c87d141417..f1449298b0 100644
> --- a/tests/qapi-schema/meson.build
> +++ b/tests/qapi-schema/meson.build
> @@ -220,6 +220,6 @@ qapi_doc = custom_target('QAPI doc',
>
> # "full_path()" needed here to work around
> # https://github.com/mesonbuild/meson/issues/7585
> -test('QAPI doc', diff, args: ['-u', files('doc-good.texi'), qapi_doc[0].full_path()],
> +test('QAPI doc', diff, args: ['-b', '-u', files('doc-good.texi'), qapi_doc[0].full_path()],
The change itself is sensible, once the commit message is fixed, so for
v3, you can add:
Reviewed-by: Eric Blake <eblake@redhat.com>
> depends: qapi_doc,
> suite: ['qapi-schema', 'qapi-doc'])
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
prev parent reply other threads:[~2020-09-08 12:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 17:48 [PATCH v2] meson: Use -b to ignore CR vs. CR-LF issues on Windows Yonggang Luo
2020-09-07 17:53 ` 罗勇刚(Yonggang Luo)
2020-09-08 12:42 ` Eric Blake [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4cd42e60-03c3-ced3-284f-bc6fad2780f0@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.com \
--cc=luoyonggang@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).