[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/15] iotests/migration-permissions: fixup
From: |
John Snow |
Subject: |
[PATCH 11/15] iotests/migration-permissions: fixup |
Date: |
Fri, 18 Mar 2022 16:36:51 -0400 |
(Merge into prior commit)
Note, this is a quick hack band-aid, but a follow-up patch spends the
time to refactor it a bit. This is just the quick stop-gap to prevent
bisection failures.
Signed-off-by: John Snow <jsnow@redhat.com>
---
tests/qemu-iotests/tests/migration-permissions | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/tests/migration-permissions
b/tests/qemu-iotests/tests/migration-permissions
index 6be02581c7..c7afb1bd2c 100755
--- a/tests/qemu-iotests/tests/migration-permissions
+++ b/tests/qemu-iotests/tests/migration-permissions
@@ -69,7 +69,7 @@ class TestMigrationPermissions(iotests.QMPTestCase):
def test_post_migration_permissions(self):
# Try to access the image R/W, which should fail because virtio-blk
# has not been configured with share-rw=on
- log = qemu_io('-f', imgfmt, '-c', 'quit', test_img)
+ log = qemu_io('-f', imgfmt, '-c', 'quit', test_img, check=False).stdout
if not log.strip():
print('ERROR (pre-migration): qemu-io should not be able to '
'access this image, but it reported no error')
@@ -84,7 +84,7 @@ class TestMigrationPermissions(iotests.QMPTestCase):
# Try the same qemu-io access again, verifying that the WRITE
# permission remains unshared
- log = qemu_io('-f', imgfmt, '-c', 'quit', test_img)
+ log = qemu_io('-f', imgfmt, '-c', 'quit', test_img, check=False).stdout
if not log.strip():
print('ERROR (post-migration): qemu-io should not be able to '
'access this image, but it reported no error')
--
2.34.1
- [PATCH 06/15] iotests: rebase qemu_io() on top of qemu_tool(), (continued)
- [PATCH 06/15] iotests: rebase qemu_io() on top of qemu_tool(), John Snow, 2022/03/18
- [PATCH 13/15] iotests: remove qemu_io_pipe_and_status(), John Snow, 2022/03/18
- [PATCH 08/15] iotests/149: fixup, John Snow, 2022/03/18
- [PATCH 11/15] iotests/migration-permissions: fixup,
John Snow <=
- [PATCH 07/15] iotests/030: fixup, John Snow, 2022/03/18
- [PATCH 09/15] iotests/205: fixup, John Snow, 2022/03/18
- [PATCH 10/15] iotests/245: fixup, John Snow, 2022/03/18
- Re: [PATCH 10/15] iotests/245: fixup, John Snow, 2022/03/22
- [PATCH 12/15] iotests/migration-permissions: use assertRaises() for qemu_io() negative test, John Snow, 2022/03/18