[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 23/37] iotests: Skip 181 and 201 without userfaultfd
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PULL 23/37] iotests: Skip 181 and 201 without userfaultfd |
Date: |
Tue, 15 May 2018 17:40:19 +0200 |
From: Max Reitz <address@hidden>
userfaultfd support depends on the host kernel, so it may not be
available. If so, 181 and 201 should be skipped.
Signed-off-by: Max Reitz <address@hidden>
Message-id: address@hidden
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/181 | 13 +++++++++++++
tests/qemu-iotests/201 | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/tests/qemu-iotests/181 b/tests/qemu-iotests/181
index 5e767c6195..e02979378d 100755
--- a/tests/qemu-iotests/181
+++ b/tests/qemu-iotests/181
@@ -96,6 +96,19 @@ echo
# Enable postcopy-ram capability both on source and destination
silent=yes
_send_qemu_cmd $dest 'migrate_set_capability postcopy-ram on' "(qemu)"
+
+qemu_error_no_exit=yes success_or_failure=yes \
+ _send_qemu_cmd $dest '' "(qemu)" "Postcopy is not supported"
+if [ ${QEMU_STATUS[$dest]} -lt 0 ]; then
+ _send_qemu_cmd $dest '' "(qemu)"
+
+ _send_qemu_cmd $src 'quit' ""
+ _send_qemu_cmd $dest 'quit' ""
+ wait=1 _cleanup_qemu
+
+ _notrun 'Postcopy is not supported'
+fi
+
_send_qemu_cmd $src 'migrate_set_speed 4k' "(qemu)"
_send_qemu_cmd $src 'migrate_set_capability postcopy-ram on' "(qemu)"
_send_qemu_cmd $src "migrate -d unix:${MIG_SOCKET}" "(qemu)"
diff --git a/tests/qemu-iotests/201 b/tests/qemu-iotests/201
index 11f640f5df..c1a1e00077 100755
--- a/tests/qemu-iotests/201
+++ b/tests/qemu-iotests/201
@@ -82,6 +82,19 @@ echo
silent=yes
_send_qemu_cmd $dest 'migrate_set_capability postcopy-ram on' "(qemu)"
+
+qemu_error_no_exit=yes success_or_failure=yes \
+ _send_qemu_cmd $dest '' "(qemu)" "Postcopy is not supported"
+if [ ${QEMU_STATUS[$dest]} -lt 0 ]; then
+ _send_qemu_cmd $dest '' "(qemu)"
+
+ _send_qemu_cmd $src 'quit' ""
+ _send_qemu_cmd $dest 'quit' ""
+ wait=1 _cleanup_qemu
+
+ _notrun 'Postcopy is not supported'
+fi
+
_send_qemu_cmd $src 'migrate_set_capability postcopy-ram on' "(qemu)"
_send_qemu_cmd $src "migrate -d unix:${MIG_SOCKET}" "(qemu)"
--
2.13.6
- [Qemu-block] [PULL 20/37] qcow2: Give the refcount cache the minimum possible size by default, (continued)
[Qemu-block] [PULL 21/37] docs: Document the new default sizes of the qcow2 caches, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 26/37] block: Add BDRV_REQ_WRITE_UNCHANGED flag, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 28/37] block/quorum: Support BDRV_REQ_WRITE_UNCHANGED, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 18/37] Fix error message about compressed clusters with OFLAG_COPIED, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 23/37] iotests: Skip 181 and 201 without userfaultfd,
Kevin Wolf <=
[Qemu-block] [PULL 27/37] block: Set BDRV_REQ_WRITE_UNCHANGED for COR writes, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 25/37] block: BLK_PERM_WRITE includes ..._UNCHANGED, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 31/37] iotests: Copy 197 for COR filter driver, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 29/37] block: Support BDRV_REQ_WRITE_UNCHANGED in filters, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 24/37] block: Add COR filter driver, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 34/37] block: Document BDRV_REQ_WRITE_UNCHANGED support, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 30/37] iotests: Clean up wrap image in 197, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 33/37] qemu-img: Check post-truncation size, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 35/37] qemu-io: Use purely string blockdev options, Kevin Wolf, 2018/05/15
[Qemu-block] [PULL 32/37] iotests: Add test for COR across nodes, Kevin Wolf, 2018/05/15