[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 21/27] qemu-iotests: Wait for QEMU processes befo
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v3 21/27] qemu-iotests: Wait for QEMU processes before checking image in 091 |
Date: |
Thu, 28 Apr 2016 20:57:40 +0800 |
We should wait for the QEMU process to terminate and close the image
before we check the data.
Signed-off-by: Fam Zheng <address@hidden>
---
tests/qemu-iotests/091 | 3 +++
tests/qemu-iotests/091.out | 1 +
2 files changed, 4 insertions(+)
diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091
index 32bbd56..32aa5c3 100755
--- a/tests/qemu-iotests/091
+++ b/tests/qemu-iotests/091
@@ -95,6 +95,9 @@ echo "vm2: qemu process running successfully"
echo "vm2: flush io, and quit"
_send_qemu_cmd $h2 'qemu-io disk flush' "(qemu)"
_send_qemu_cmd $h2 'quit' ""
+echo "vm1: quit"
+_send_qemu_cmd $h1 'quit' ""
+wait
echo "Check image pattern"
${QEMU_IO} -c "read -P 0x22 0 4M" "${TEST_IMG}" | _filter_testdir |
_filter_qemu_io
diff --git a/tests/qemu-iotests/091.out b/tests/qemu-iotests/091.out
index 5017f8c..6658ca8 100644
--- a/tests/qemu-iotests/091.out
+++ b/tests/qemu-iotests/091.out
@@ -18,6 +18,7 @@ vm1: live migration completed
vm2: qemu-io disk write complete
vm2: qemu process running successfully
vm2: flush io, and quit
+vm1: quit
Check image pattern
read 4194304/4194304 bytes at offset 0
4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
--
2.8.0
- [Qemu-devel] [PATCH v3 11/27] raw-posix: Implement .bdrv_lockf, (continued)
- [Qemu-devel] [PATCH v3 11/27] raw-posix: Implement .bdrv_lockf, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 12/27] gluster: Implement .bdrv_lockf, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 13/27] qemu-io: Add "-L" option for BDRV_O_NO_LOCK, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 14/27] qemu-img: Add "-L" option to sub commands, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 15/27] qemu-img: Update documentation of "-L" option, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 17/27] block: Don't lock drive-backup target image in none mode, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 16/27] qemu-nbd: Add "--no-lock/-L" option, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 18/27] mirror: Disable image locking on target backing chain, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 20/27] qemu-iotests: 046: Move version detection out from verify_io, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 19/27] qemu-iotests: 140: Disable image lock for qemu-io access, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 21/27] qemu-iotests: Wait for QEMU processes before checking image in 091,
Fam Zheng <=
- [Qemu-devel] [PATCH v3 22/27] qemu-iotests: 030: Disable image lock when checking test image, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 23/27] iotests: 087: Disable image lock in cases where file is shared, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 24/27] iotests: Disable image locking in 085, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 25/27] tests: Use null-co:// instead of /dev/null, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 26/27] block: Turn on image locking by default, Fam Zheng, 2016/04/28
- [Qemu-devel] [PATCH v3 27/27] qemu-iotests: Add test case 153 for image locking, Fam Zheng, 2016/04/28