From: Eric Blake <eblake@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Mao Zhongyi" <maozhongyi@cmss.chinamobile.com>,
qemu-devel@nongnu.org, mreitz@redhat.com
Cc: kwolf@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 2/3] qemu-iotests: remove unused variable here
Date: Fri, 16 Nov 2018 10:49:59 -0600 [thread overview]
Message-ID: <c5d53273-f181-4b30-8b65-a4aa85f575ea@redhat.com> (raw)
In-Reply-To: <fdde9d57-ff39-e187-3fca-fbc9e9bb4c6b@redhat.com>
On 10/24/18 6:26 PM, Philippe Mathieu-Daudé wrote:
> Hi Mao,
>
> On 24/10/18 11:40, Mao Zhongyi wrote:
>> run
>> git grep '\$here' tests/qemu-iotests
Correct. You want both the \ and the $ to be handed to the grep regex.
>
> This command doesn't look correct, I believe you have to use either
>
> - git grep '$here'
Nope - here, $ is unquoted to grep, so it matches end of line, and you
can't match 'here' after end of line.
> or
> - git grep \$here
Ditto.
>
>>
>> has 0 hits, which means we are setting a variable that
>> no use, so execute the following cmd to remove all of
>> the 'here=...' lines as dead code.
>
> This seems to have been removed in e8f8624d3b920de.
Worthwhile to mention in the commit message.
>
>>
>> sed -i '/here=/d' $(git grep -l 'here=' tests/qemu-iotests)
>>
>> Cc: kwolf@redhat.com
>> Cc: mreitz@redhat.com
>> Cc: eblake@redhat.com
>>
>> Suggested-by: Eric Blake <eblake@redhat.com>
>
> Please Cc Eric if he suggested, so he can review.
I was cc'd - but mailman is stupid and rewrites the cc line sent to the
list because of my settings (I really wish it wouldn't).
Reviewed-by: Eric Blake <eblake@redhat.com>
I might just queue this through my NBD tree, since I noticed the issue
again in test 233 just proposed by Dan.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
next prev parent reply other threads:[~2018-11-16 16:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 9:40 [Qemu-devel] [PATCH v2 0/3] Do some cleaning work in qemu-iotests Mao Zhongyi
2018-10-24 9:40 ` [Qemu-devel] [PATCH v2 1/3] qemu-iotests: convert `pwd` and $(pwd) to $PWD Mao Zhongyi
2018-11-16 16:53 ` Eric Blake
2018-11-16 20:42 ` Eric Blake
2018-11-16 20:46 ` Eric Blake
2018-10-24 9:40 ` [Qemu-devel] [PATCH v2 2/3] qemu-iotests: remove unused variable here Mao Zhongyi
2018-10-24 23:26 ` Philippe Mathieu-Daudé
2018-10-25 9:34 ` [Qemu-devel] [PATCH v2 2/3] qemu-iotests: remove unused variablehere maozy
2018-11-16 16:49 ` Eric Blake [this message]
2018-10-24 9:40 ` [Qemu-devel] [PATCH v2 3/3] qemu-iotests: Modern shell scripting (use $() instead of ``) Mao Zhongyi
2018-11-16 16:58 ` Eric Blake
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=c5d53273-f181-4b30-8b65-a4aa85f575ea@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=maozhongyi@cmss.chinamobile.com \
--cc=mreitz@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@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).