[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 3/4] qemu-iotests: s390x: fix test 068
From: |
Bo Tu |
Subject: |
[Qemu-devel] [PATCH v2 3/4] qemu-iotests: s390x: fix test 068 |
Date: |
Wed, 4 Nov 2015 10:26:57 +0800 |
Now, s390-virtio-ccw is default machine and s390-ccw.img is default boot
loader. If the s390-virtio-ccw machine finds no device to load from and
errors out, then emits a panic and exits the vm. This breaks test cases
068 for s390x.
Adding the parameter of "-no-shutdown" for s390-ccw-virtio will pause VM
before shutdown.
Reviewed-by: Sascha Silbe <address@hidden>
Signed-off-by: Bo Tu <address@hidden>
---
tests/qemu-iotests/068 | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/068 b/tests/qemu-iotests/068
index b72e555..58d1d80 100755
--- a/tests/qemu-iotests/068
+++ b/tests/qemu-iotests/068
@@ -50,13 +50,23 @@ echo
echo "=== Saving and reloading a VM state to/from a qcow2 image ==="
echo
_make_test_img $IMG_SIZE
+
+case "$QEMU_DEFAULT_MACHINE" in
+ s390-ccw-virtio)
+ platform_parm="-no-shutdown -machine accel=kvm"
+ ;;
+ *)
+ platform_parm=""
+ ;;
+esac
+
# Give qemu some time to boot before saving the VM state
bash -c 'sleep 1; echo -e "savevm 0\nquit"' |\
- $QEMU -nographic -monitor stdio -serial none -hda "$TEST_IMG" |\
+ $QEMU $platform_parm -nographic -monitor stdio -serial none -hda
"$TEST_IMG" |\
_filter_qemu
# Now try to continue from that VM state (this should just work)
echo quit |\
- $QEMU -nographic -monitor stdio -serial none -hda "$TEST_IMG" -loadvm 0 |\
+ $QEMU $platform_parm -nographic -monitor stdio -serial none -hda
"$TEST_IMG" -loadvm 0 |\
_filter_qemu
# success, all done
--
2.3.0
- [Qemu-devel] [PATCH v2 0/4] Update tests/qemu-iotests failing cases for the s390 platform, Bo Tu, 2015/11/03
- [Qemu-devel] [PATCH v2 1/4] qemu-iotests: refine common.config, Bo Tu, 2015/11/03
- [Qemu-devel] [PATCH v2 4/4] qemu-iotests: disable VNC server for test 120, Bo Tu, 2015/11/03
- [Qemu-devel] [PATCH v2 3/4] qemu-iotests: s390x: fix test 068,
Bo Tu <=
- [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, Bo Tu, 2015/11/03
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, Max Reitz, 2015/11/18
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, tu bo, 2015/11/19
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, Max Reitz, 2015/11/20
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, tu bo, 2015/11/22
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, Sascha Silbe, 2015/11/24
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, Max Reitz, 2015/11/25
- Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051, tu bo, 2015/11/26