qemu-iotests: Remove PERL_PROG and BC_PROG
PATCH 1/1 qemu-iotests: Remove PERL_PROG and BC_PROG
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.
--- tests/qemu-iotests/common.config | 6 ------ 1 file changed, 6 deletions(-)
tests/qemu-iotests/common.config +0 -6
@@ -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
Signature · 1 line
1.8.3.1
Quoted 10 lines · Kevin Wolf
We test for the presence of perl and bc and save their path in the variables
PERL_PROGandBC_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 <[email protected]>Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/common.config | 6 ------ 1 file changed, 6 deletions(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 16 lines · Kevin Wolf
We test for the presence of perl and bc and save their path in the variables
PERL_PROGandBC_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 <[email protected]>Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/common.config | 6 ------ 1 file changed, 6 deletions(-)tests/qemu-iotests/common.config +0
-0
tests/qemu-iotests/common.config _fatal() · line 80
Quoted 6 lines
tests/qemu-iotests/common.config +0
-3@@ -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:
tests/qemu-iotests/common.config _fatal() · line 89
Quoted 9 lines
tests/qemu-iotests/common.config +0
-3export 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!
Quoted 7 lines
tests/qemu-iotests/common.config +0
-0export PS_ALL_FLAGS="-ef" if [ -z "$QEMU_PROG" ]; thenSignature · 1 line
1.8.3.1