From: Eric Blake <eblake@redhat.com>
To: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>, qemu-devel@nongnu.org
Cc: kwolf@redhat.com, mreitz@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2 3/3] qemu-iotests: Modern shell scripting (use $() instead of ``)
Date: Fri, 16 Nov 2018 10:58:31 -0600 [thread overview]
Message-ID: <89541229-6e18-a07d-d7d0-475a18702926@redhat.com> (raw)
In-Reply-To: <20181024094051.4470-4-maozhongyi@cmss.chinamobile.com>
On 10/24/18 4:40 AM, Mao Zhongyi wrote:
> Various shell files contain a mix between obsolete ``
> and modern $(); It would be nice to convert to using
> $() everywhere.
>
> Cc: kwolf@redhat.com
> Cc: mreitz@redhat.com
> Cc: eblake@redhat.com
>
> Suggested-by: Eric Blake <eblake@redhat.com>
> Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
> ---
> tests/qemu-iotests/check | 60 ++++++++++++++++----------------
> tests/qemu-iotests/common.config | 4 +--
> 2 files changed, 32 insertions(+), 32 deletions(-)
Only affects tests/ so safe for 3.1. I'm happy to take this through my
NBD queue, since Dan's test addition will also be impacted by this change.
>
> diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
> index b37713277d..89ed275988 100755
> --- a/tests/qemu-iotests/check
> +++ b/tests/qemu-iotests/check
> @@ -590,7 +590,7 @@ fi
> export QEMU_NBD_PROG="$(type -p "$QEMU_NBD_PROG")"
>
> if [ -z "$QEMU_VXHS_PROG" ]; then
> - export QEMU_VXHS_PROG="`set_prog_path qnio_server`"
> + export QEMU_VXHS_PROG="$(set_prog_path qnio_server)"
> fi
Interesting indentation change while at it. But 4 spaces does seem to
be more consistent.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
prev parent reply other threads:[~2018-11-16 16:58 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 ` [Qemu-devel] [PATCH v2 2/3] qemu-iotests: remove unused variable here Eric Blake
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 [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=89541229-6e18-a07d-d7d0-475a18702926@redhat.com \
--to=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=maozhongyi@cmss.chinamobile.com \
--cc=mreitz@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).