Skip to contentSkip to conversation

qemu-iotests: Remove PERL_PROG and BC_PROG

PATCH In review Kevin Wolf 3 participants 3 messages Apr 20, 2017 – Apr 21, 2017

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

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
index 55527aa..1222e43 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Kevin Wolf

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(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
Reviewed-by on v1 1/1
#2 lore raw
In reply to Kevin Wolf
Quoted 16 lines · Kevin Wolf

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 -0
index 55527aa..1222e43 100644

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 -3
 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!

Quoted 7 lines
tests/qemu-iotests/common.config +0 -0
 export PS_ALL_FLAGS="-ef"
 
 if [ -z "$QEMU_PROG" ]; then
Signature · 1 line
1.8.3.1