* [Qemu-devel] [PATCH] qemu-iotests: Remove PERL_PROG and BC_PROG
@ 2017-04-20 20:15 Kevin Wolf
2017-04-20 20:17 ` [Qemu-devel] [Qemu-block] " Eric Blake
2017-04-21 0:23 ` [Qemu-devel] " Fam Zheng
0 siblings, 2 replies; 3+ messages in thread
From: Kevin Wolf @ 2017-04-20 20:15 UTC (permalink / raw)
To: qemu-block; +Cc: kwolf, ymankad, qemu-devel
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"
-
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"
-
export PS_ALL_FLAGS="-ef"
if [ -z "$QEMU_PROG" ]; then
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-iotests: Remove PERL_PROG and BC_PROG
2017-04-20 20:15 [Qemu-devel] [PATCH] qemu-iotests: Remove PERL_PROG and BC_PROG Kevin Wolf
@ 2017-04-20 20:17 ` Eric Blake
2017-04-21 0:23 ` [Qemu-devel] " Fam Zheng
1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2017-04-20 20:17 UTC (permalink / raw)
To: Kevin Wolf, qemu-block; +Cc: ymankad, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
On 04/20/2017 03:15 PM, 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(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] qemu-iotests: Remove PERL_PROG and BC_PROG
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
1 sibling, 0 replies; 3+ messages in thread
From: Fam Zheng @ 2017-04-21 0:23 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-block, ymankad, qemu-devel
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-21 0:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [Qemu-devel] " Fam Zheng
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).