@@ -37,8 +37,6 @@ snapshot_virt1="snapshot-v1.qcow2"
SNAPSHOTS=10
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -31,8 +31,6 @@ status=1 # failure is the default!
MIG_FIFO="${TEST_DIR}/migrate"
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -30,8 +30,6 @@ echo "QA output created by $seq"
here=`pwd`
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here=$PWD
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and qemu instance handling
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -29,8 +29,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -31,8 +31,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -32,8 +32,6 @@ status=1 # failure is the default!
TMP_SNAP1=${TEST_DIR}/tmp.qcow2
TMP_SNAP2=${TEST_DIR}/tmp2.qcow2
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here=`pwd`
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -35,8 +35,6 @@ echo "QA output created by $seq"
here="$PWD"
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -27,8 +27,6 @@ echo "QA output created by $seq"
here=`pwd`
status=1 # failure is the default!
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -29,8 +29,6 @@ status=1 # failure is the default!
MIG_SOCKET="${TEST_DIR}/migrate"
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -29,8 +29,6 @@ status=1 # failure is the default!
MIG_SOCKET="${TEST_DIR}/migrate"
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -29,8 +29,6 @@ status=1 # failure is the default!
MIG_SOCKET="${TEST_DIR}/migrate"
-trap "_cleanup_qemu; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -29,12 +29,6 @@ status=1 # failure is the default!
MIG_SOCKET="${TEST_DIR}/migrate"
-_cleanup()
-{
- _cleanup_qemu
-}
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
@@ -847,8 +847,10 @@ do
export TEST_DIR=$TEST_DIR_SEQ
. "$source_iotests/common.config"
. "$source_iotests/common.rc"
+ . "$source_iotests/common.qemu"
_cleanup_protocols
+ _cleanup_qemu
)
rm -rf "$TEST_DIR_SEQ"
Check will now take care of cleaning up all QEMU processes started from bash tests using the common.qemu framework. This also paves the way to added another check option to keep QEMU processes around, in the case of a failed test. Signed-off-by: Jeff Cody <jcody@redhat.com> --- tests/qemu-iotests/085 | 2 -- tests/qemu-iotests/091 | 2 -- tests/qemu-iotests/094 | 2 -- tests/qemu-iotests/095 | 2 -- tests/qemu-iotests/102 | 2 -- tests/qemu-iotests/109 | 2 -- tests/qemu-iotests/117 | 2 -- tests/qemu-iotests/130 | 2 -- tests/qemu-iotests/140 | 2 -- tests/qemu-iotests/141 | 2 -- tests/qemu-iotests/143 | 2 -- tests/qemu-iotests/144 | 2 -- tests/qemu-iotests/146 | 2 -- tests/qemu-iotests/156 | 2 -- tests/qemu-iotests/173 | 2 -- tests/qemu-iotests/181 | 2 -- tests/qemu-iotests/183 | 2 -- tests/qemu-iotests/185 | 2 -- tests/qemu-iotests/191 | 6 ------ tests/qemu-iotests/check | 2 ++ 20 files changed, 2 insertions(+), 42 deletions(-)