From: Fam Zheng <famz@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-block@nongnu.org, ymankad@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Remove PERL_PROG and BC_PROG
Date: Fri, 21 Apr 2017 08:23:44 +0800 [thread overview]
Message-ID: <20170421002344.GP24486@lemon.lan> (raw)
In-Reply-To: <1492719341-11476-1-git-send-email-kwolf@redhat.com>
On Thu, 04/20 22:15, Kevin Wolf wrote:
> We test for the presence of perl and bc and save their path in the
> variables PERL_PROG and BC_PROG, but never actually make use of them.
> Remove the checks and assignments so qemu-iotests can run even when
> bc isn't installed.
>
> Reported-by: Yash Mankad <ymankad@redhat.com>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> tests/qemu-iotests/common.config | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config
> index 55527aa..1222e43 100644
> --- a/tests/qemu-iotests/common.config
> +++ b/tests/qemu-iotests/common.config
> @@ -75,18 +75,12 @@ _fatal()
> exit 1
> }
>
> -export PERL_PROG="`set_prog_path perl`"
> -[ "$PERL_PROG" = "" ] && _fatal "perl not found"
> -
Then we should drop _readlink which is unused and uses perl too. Whether in this
patch together or in a separate patch doesn't matter much, so:
> export AWK_PROG="`set_prog_path awk`"
> [ "$AWK_PROG" = "" ] && _fatal "awk not found"
>
> export SED_PROG="`set_prog_path sed`"
> [ "$SED_PROG" = "" ] && _fatal "sed not found"
>
> -export BC_PROG="`set_prog_path bc`"
> -[ "$BC_PROG" = "" ] && _fatal "bc not found"
> -
The bc part is nice!
> export PS_ALL_FLAGS="-ef"
>
> if [ -z "$QEMU_PROG" ]; then
> --
> 1.8.3.1
>
>
Reviewed-by: Fam Zheng <famz@redhat.com>
prev parent reply other threads:[~2017-04-21 0:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-20 20:15 [Qemu-devel] [PATCH] qemu-iotests: Remove PERL_PROG and BC_PROG Kevin Wolf
2017-04-20 20:17 ` [Qemu-devel] [Qemu-block] " Eric Blake
2017-04-21 0:23 ` Fam Zheng [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=20170421002344.GP24486@lemon.lan \
--to=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=ymankad@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.