@@ -21,10 +21,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -24,10 +24,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -50,7 +50,7 @@ echo
echo "creating image"
_make_test_img 1M
-for i in `seq 1 10`; do
+for i in $(seq 1 10); do
echo "savevm $i"
$QEMU -nographic -hda "$TEST_IMG" -serial none -monitor stdio >/dev/null 2>&1 <<EOF
savevm test-$i
@@ -21,10 +21,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -51,7 +51,7 @@ _make_test_img $size
echo
echo "overlapping I/O"
-for i in `seq 1 10`; do
+for i in $(seq 1 10); do
let mb=1024*1024
let off1=$i*$mb
let off2=$off1+512
@@ -23,10 +23,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -59,7 +59,7 @@ for offset in $TEST_OFFSETS; do
done
# With snapshots
-for i in `seq 1 3`; do
+for i in $(seq 1 3); do
$QEMU_IMG snapshot -c test$i "$TEST_IMG"
for offset in $TEST_OFFSETS; do
echo With snapshot test$i, offset $offset
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=hch@lst.de
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@linux.vnet.ibm.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@linux.vnet.ibm.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -24,10 +24,10 @@
# creator
owner=stefanha@linux.vnet.ibm.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=pbonzini@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -24,10 +24,10 @@
# creator
owner=stefanha@linux.vnet.ibm.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -24,10 +24,10 @@
# creator
owner=stefanha@linux.vnet.ibm.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,7 +22,7 @@
# creator
owner=mrezanin@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
status=1 # failure is the default!
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=pbonzini@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=xiawenc@linux.vnet.ibm.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
nbd_unix_socket=$TEST_DIR/test_qemu_nbd_socket
@@ -21,10 +21,10 @@
# creator
owner=famz@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=mreitz@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=mreitz@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=alex@alex.org.uk
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
# get standard environment, filters and checks
@@ -22,10 +22,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,7 +22,7 @@
# creator
owner=famz@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
status=1 # failure is the default!
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=hutao@cn.fujitsu.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=benoit@irqsave.net
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -26,10 +26,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
snapshot_virt0="snapshot-v0.qcow2"
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
# get standard environment, filters and checks
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
MIG_FIFO="${TEST_DIR}/migrate"
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -24,10 +24,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=hutao@cn.fujitsu.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
trap "exit \$status" 0 1 2 3 15
@@ -21,10 +21,10 @@
# creator
owner=famz@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -24,10 +24,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
devname="eiodev$$"
@@ -21,10 +21,10 @@
# creator
owner=den@openvz.org
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=berrange@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
TMP_SNAP1=${TEST_DIR}/tmp.qcow2
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=berrange@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=tgolembi@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=nirsof@gmail.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=nirsof@gmail.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=eblake@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=stefanha@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
MIG_SOCKET="${TEST_DIR}/migrate"
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
MIG_SOCKET="${TEST_DIR}/migrate"
@@ -21,10 +21,10 @@
# creator
owner="Manos Pitsidianakis"
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
trap "exit \$status" 0 1 2 3 15
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=berrange@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=berrange@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=eblake@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=famz@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=kwolf@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -21,10 +21,10 @@
# creator
owner=berrange@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -19,7 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
status=1 # failure is the default!
@@ -21,10 +21,10 @@
# creator
owner=eblake@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -22,10 +22,10 @@
# creator
owner=jsnow@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -23,10 +23,10 @@
# creator
owner=jcody@redhat.com
-seq=`basename $0`
+seq=$(basename $0)
echo "QA output created by $seq"
-here=`pwd`
+here=$(pwd)
status=1 # failure is the default!
_cleanup()
@@ -80,17 +80,17 @@ _full_imgfmt_details()
_full_platform_details()
{
- os=`uname -s`
- host=`hostname -s`
- kernel=`uname -r`
- platform=`uname -m`
+ os=$(uname -s)
+ host=$(hostname -s)
+ kernel=$(uname -r)
+ platform=$(uname -m)
echo "$os/$platform $host $kernel"
}
# $1 = prog to look for
set_prog_path()
{
- p=`command -v $1 2> /dev/null`
+ p=$(command -v $1 2> /dev/null)
if [ -n "$p" -a -x "$p" ]; then
type -p "$p"
else
@@ -99,7 +99,7 @@ set_prog_path()
}
if [ -z "$TEST_DIR" ]; then
- TEST_DIR=`pwd`/scratch
+ TEST_DIR=$(pwd)/scratch
fi
if [ ! -e "$TEST_DIR" ]; then
@@ -147,9 +147,9 @@ do
if $group
then
# arg after -g
- group_list=`sed -n <"$source_iotests/group" -e 's/$/ /' -e "/^[0-9][0-9][0-9].* $r /"'{
+ group_list=$(sed -n <"$source_iotests/group" -e 's/$/ /' -e "/^[0-9][0-9][0-9].* $r /"'{
s/ .*//p
-}'`
+}')
if [ -z "$group_list" ]
then
echo "Group \"$r\" is empty or not defined?"
@@ -173,9 +173,9 @@ s/ .*//p
# arg after -x
# Populate $tmp.list with all tests
awk '/^[0-9]{3,}/ {print $1}' "${source_iotests}/group" > $tmp.list 2>/dev/null
- group_list=`sed -n <"$source_iotests/group" -e 's/$/ /' -e "/^[0-9][0-9][0-9].* $r /"'{
+ group_list=$(sed -n <"$source_iotests/group" -e 's/$/ /' -e "/^[0-9][0-9][0-9].* $r /"'{
s/ .*//p
-}'`
+}')
if [ -z "$group_list" ]
then
echo "Group \"$r\" is empty or not defined?"
@@ -193,7 +193,7 @@ s/ .*//p
rm -f $tmp.sed
fi
echo "/^$t\$/d" >>$tmp.sed
- numsed=`expr $numsed + 1`
+ numsed=$(expr $numsed + 1)
done
sed -f $tmp.sed <$tmp.list >$tmp.tmp
mv $tmp.tmp $tmp.list
@@ -433,12 +433,12 @@ testlist options
;;
[0-9]*-[0-9]*)
- eval `echo $r | sed -e 's/^/start=/' -e 's/-/ end=/'`
+ eval $(echo $r | sed -e 's/^/start=/' -e 's/-/ end=/')
;;
[0-9]*-)
- eval `echo $r | sed -e 's/^/start=/' -e 's/-//'`
- end=`echo [0-9][0-9][0-9] [0-9][0-9][0-9][0-9] | sed -e 's/\[0-9]//g' -e 's/ *$//' -e 's/.* //'`
+ eval $(echo $r | sed -e 's/^/start=/' -e 's/-//')
+ end=$(echo [0-9][0-9][0-9] [0-9][0-9][0-9][0-9] | sed -e 's/\[0-9]//g' -e 's/ *$//' -e 's/.* //')
if [ -z "$end" ]
then
echo "No tests in range \"$r\"?"
@@ -455,8 +455,8 @@ testlist options
esac
# get rid of leading 0s as can be interpreted as octal
- start=`echo $start | sed 's/^0*//'`
- end=`echo $end | sed 's/^0*//'`
+ start=$(echo $start | sed 's/^0*//')
+ end=$(echo $end | sed 's/^0*//')
if $xpand
then
@@ -531,7 +531,7 @@ fi
# should be sort -n, but this did not work for Linux when this
# was ported from IRIX
#
-list=`sort $tmp.list`
+list=$(sort $tmp.list)
rm -f $tmp.list $tmp.tmp $tmp.sed
if [ -z "$QEMU_PROG" ]
@@ -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
if [ -x "$build_iotests/socket_scm_helper" ]
@@ -616,7 +616,7 @@ _wallclock()
_timestamp()
{
- now=`date "+%T"`
+ now=$(date "+%T")
printf %s " [$now]"
}
@@ -642,9 +642,9 @@ END { if (NR > 0) {
if [ -f $tmp.expunged ]
then
- notrun=`wc -l <$tmp.expunged | sed -e 's/ *//g'`
- try=`expr $try - $notrun`
- list=`echo "$list" | sed -f $tmp.expunged`
+ notrun=$(wc -l <$tmp.expunged | sed -e 's/ *//g')
+ try=$(expr $try - $notrun)
+ list=$(echo "$list" | sed -f $tmp.expunged)
fi
echo "" >>check.log
@@ -682,8 +682,8 @@ trap "_wrapup; exit \$status" 0 1 2 3 15
[ -f $TIMESTAMP_FILE ] || touch $TIMESTAMP_FILE
-FULL_IMGFMT_DETAILS=`_full_imgfmt_details`
-FULL_HOST_DETAILS=`_full_platform_details`
+FULL_IMGFMT_DETAILS=$(_full_imgfmt_details)
+FULL_HOST_DETAILS=$(_full_platform_details)
cat <<EOF
QEMU -- "$QEMU_PROG" $QEMU_OPTIONS
@@ -729,7 +729,7 @@ do
# really going to try and run this one
#
rm -f $seq.out.bad
- lasttime=`sed -n -e "/^$seq /s/.* //p" <$TIMESTAMP_FILE`
+ lasttime=$(sed -n -e "/^$seq /s/.* //p" <$TIMESTAMP_FILE)
if [ "X$lasttime" != X ]; then
printf %s " ${lasttime}s ..."
else
@@ -737,7 +737,7 @@ do
fi
rm -f core $seq.notrun
- start=`_wallclock`
+ start=$(_wallclock)
$timestamp && printf %s " [$(date "+%T")]"
if [ "$(head -n 1 "$source_iotests/$seq")" == "#!/usr/bin/env python" ]; then
@@ -757,7 +757,7 @@ do
fi
sts=$?
$timestamp && _timestamp
- stop=`_wallclock`
+ stop=$(_wallclock)
if [ -f core ]
then
@@ -806,7 +806,7 @@ do
then
:
else
- echo "$seq `expr $stop - $start`" >>$tmp.time
+ echo "$seq $(expr $stop - $start)" >>$tmp.time
fi
else
echo " - output mismatch (see $seq.out.bad)"
@@ -824,14 +824,14 @@ do
if $err
then
bad="$bad $seq"
- n_bad=`expr $n_bad + 1`
+ n_bad=$(expr $n_bad + 1)
quick=false
fi
- [ -f $seq.notrun ] || try=`expr $try + 1`
+ [ -f $seq.notrun ] || try=$(expr $try + 1)
seq="after_$seq"
done
interrupt=false
-status=`expr $n_bad`
+status=$(expr $n_bad)
exit
@@ -21,11 +21,11 @@ export LANG=C
PATH=".:$PATH"
-HOSTOS=`uname -s`
-arch=`uname -m`
+HOSTOS=$(uname -s)
+arch=$(uname -m)
[[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch"
-export PWD=`pwd`
+export PWD=$(pwd)
# make sure we have a standard umask
umask 022
@@ -22,7 +22,7 @@ function do_is_allocated() {
local step=$3
local count=$4
- for i in `seq 1 $count`; do
+ for i in $(seq 1 $count); do
echo alloc $(( start + (i - 1) * step )) $size
done
}
@@ -40,7 +40,7 @@ function do_io() {
local pattern=$6
echo === IO: pattern $pattern >&2
- for i in `seq 1 $count`; do
+ for i in $(seq 1 $count); do
echo $op -P $pattern $(( start + (i - 1) * step )) $size
done
}
@@ -160,7 +160,7 @@ fi
ORIG_TEST_IMG="$TEST_IMG"
if [ -z "$TEST_DIR" ]; then
- TEST_DIR=`pwd`/scratch
+ TEST_DIR=$(pwd)/scratch
fi
QEMU_TEST_DIR="${TEST_DIR}"
Various shell files contain a mix between obsolete `` and modern $(); It would be nice to convert to using $() everywhere. `pwd` and `basename $0` are in 231 files under directory tests/qemu-iotests, so replaced it with the following: sed -i 's/`pwd`/$(pwd)/g' $(git grep -l "\`pwd\`") sed -i 's/`basename $0`/$(basename $0)/g' $(git grep -l "basename \$0") A small amount of the rest is manually modified. Cc: kwolf@redhat.com Cc: mreitz@redhat.com Cc: qemu-block@nongnu.org Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com> --- tests/qemu-iotests/001 | 4 +- tests/qemu-iotests/002 | 4 +- tests/qemu-iotests/003 | 4 +- tests/qemu-iotests/004 | 4 +- tests/qemu-iotests/005 | 4 +- tests/qemu-iotests/007 | 6 +-- tests/qemu-iotests/008 | 4 +- tests/qemu-iotests/009 | 4 +- tests/qemu-iotests/010 | 4 +- tests/qemu-iotests/011 | 6 +-- tests/qemu-iotests/012 | 4 +- tests/qemu-iotests/013 | 4 +- tests/qemu-iotests/014 | 6 +-- tests/qemu-iotests/015 | 4 +- tests/qemu-iotests/017 | 4 +- tests/qemu-iotests/018 | 4 +- tests/qemu-iotests/019 | 4 +- tests/qemu-iotests/020 | 4 +- tests/qemu-iotests/021 | 4 +- tests/qemu-iotests/022 | 4 +- tests/qemu-iotests/023 | 4 +- tests/qemu-iotests/024 | 4 +- tests/qemu-iotests/025 | 4 +- tests/qemu-iotests/026 | 4 +- tests/qemu-iotests/027 | 4 +- tests/qemu-iotests/028 | 4 +- tests/qemu-iotests/029 | 4 +- tests/qemu-iotests/031 | 4 +- tests/qemu-iotests/032 | 4 +- tests/qemu-iotests/033 | 4 +- tests/qemu-iotests/034 | 4 +- tests/qemu-iotests/035 | 4 +- tests/qemu-iotests/036 | 4 +- tests/qemu-iotests/037 | 4 +- tests/qemu-iotests/038 | 4 +- tests/qemu-iotests/039 | 4 +- tests/qemu-iotests/042 | 4 +- tests/qemu-iotests/043 | 4 +- tests/qemu-iotests/046 | 4 +- tests/qemu-iotests/047 | 4 +- tests/qemu-iotests/048 | 2 +- tests/qemu-iotests/049 | 4 +- tests/qemu-iotests/050 | 4 +- tests/qemu-iotests/051 | 4 +- tests/qemu-iotests/052 | 4 +- tests/qemu-iotests/053 | 4 +- tests/qemu-iotests/054 | 4 +- tests/qemu-iotests/058 | 4 +- tests/qemu-iotests/059 | 4 +- tests/qemu-iotests/061 | 4 +- tests/qemu-iotests/062 | 4 +- tests/qemu-iotests/063 | 4 +- tests/qemu-iotests/064 | 4 +- tests/qemu-iotests/067 | 4 +- tests/qemu-iotests/070 | 4 +- tests/qemu-iotests/073 | 4 +- tests/qemu-iotests/074 | 2 +- tests/qemu-iotests/075 | 4 +- tests/qemu-iotests/076 | 4 +- tests/qemu-iotests/077 | 4 +- tests/qemu-iotests/078 | 4 +- tests/qemu-iotests/079 | 4 +- tests/qemu-iotests/080 | 4 +- tests/qemu-iotests/081 | 4 +- tests/qemu-iotests/082 | 4 +- tests/qemu-iotests/083 | 4 +- tests/qemu-iotests/084 | 4 +- tests/qemu-iotests/085 | 4 +- tests/qemu-iotests/086 | 4 +- tests/qemu-iotests/087 | 4 +- tests/qemu-iotests/088 | 4 +- tests/qemu-iotests/091 | 4 +- tests/qemu-iotests/092 | 4 +- tests/qemu-iotests/095 | 4 +- tests/qemu-iotests/101 | 4 +- tests/qemu-iotests/104 | 4 +- tests/qemu-iotests/105 | 4 +- tests/qemu-iotests/116 | 4 +- tests/qemu-iotests/128 | 4 +- tests/qemu-iotests/131 | 4 +- tests/qemu-iotests/133 | 4 +- tests/qemu-iotests/134 | 4 +- tests/qemu-iotests/135 | 4 +- tests/qemu-iotests/142 | 4 +- tests/qemu-iotests/144 | 4 +- tests/qemu-iotests/145 | 4 +- tests/qemu-iotests/146 | 4 +- tests/qemu-iotests/154 | 4 +- tests/qemu-iotests/158 | 4 +- tests/qemu-iotests/171 | 4 +- tests/qemu-iotests/172 | 4 +- tests/qemu-iotests/173 | 4 +- tests/qemu-iotests/174 | 4 +- tests/qemu-iotests/175 | 4 +- tests/qemu-iotests/177 | 4 +- tests/qemu-iotests/178 | 4 +- tests/qemu-iotests/181 | 4 +- tests/qemu-iotests/183 | 4 +- tests/qemu-iotests/184 | 4 +- tests/qemu-iotests/185 | 4 +- tests/qemu-iotests/186 | 4 +- tests/qemu-iotests/187 | 4 +- tests/qemu-iotests/188 | 4 +- tests/qemu-iotests/189 | 4 +- tests/qemu-iotests/190 | 4 +- tests/qemu-iotests/191 | 4 +- tests/qemu-iotests/192 | 4 +- tests/qemu-iotests/195 | 4 +- tests/qemu-iotests/198 | 4 +- tests/qemu-iotests/200 | 4 +- tests/qemu-iotests/201 | 2 +- tests/qemu-iotests/204 | 4 +- tests/qemu-iotests/226 | 4 +- tests/qemu-iotests/231 | 4 +- tests/qemu-iotests/check | 62 +++++++++++++++---------------- tests/qemu-iotests/common.config | 6 +-- tests/qemu-iotests/common.pattern | 4 +- tests/qemu-iotests/common.rc | 2 +- 118 files changed, 265 insertions(+), 265 deletions(-)