|
|
7711c0 |
From 04ee985760e2f82bf1a74ea0772116a2e2603a1e Mon Sep 17 00:00:00 2001
|
|
|
7711c0 |
From: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Date: Wed, 20 Mar 2019 16:16:26 +0100
|
|
|
7711c0 |
Subject: [PATCH 028/163] iotests: Re-add filename filters
|
|
|
7711c0 |
|
|
|
7711c0 |
RH-Author: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Message-id: <20190320161631.14841-15-jsnow@redhat.com>
|
|
|
7711c0 |
Patchwork-id: 84951
|
|
|
7711c0 |
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 14/19] iotests: Re-add filename filters
|
|
|
7711c0 |
Bugzilla: 1668956
|
|
|
7711c0 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
7711c0 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
From: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
|
|
|
7711c0 |
A previous commit removed the default filters for qmp_log with the
|
|
|
7711c0 |
intention to make them explicit; but this happened only for test 206.
|
|
|
7711c0 |
There are more tests (for more exotic image formats than qcow2) which
|
|
|
7711c0 |
require the filename filter, though.
|
|
|
7711c0 |
|
|
|
7711c0 |
Note that 237 is still broken for Python 2.x, which is fixed in the next
|
|
|
7711c0 |
commit.
|
|
|
7711c0 |
|
|
|
7711c0 |
Fixes: f8ca8609d8549def45b28e82ecac64adaeee9f12
|
|
|
7711c0 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
Reviewed-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Message-id: 20190210145736.1486-2-mreitz@redhat.com
|
|
|
7711c0 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
7711c0 |
(cherry picked from commit 250c04f554a4a148eb3772af255e6a60450293b0)
|
|
|
7711c0 |
Signed-off-by: John Snow <jsnow@redhat.com>
|
|
|
7711c0 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
7711c0 |
---
|
|
|
7711c0 |
tests/qemu-iotests/210 | 5 +++--
|
|
|
7711c0 |
tests/qemu-iotests/211 | 5 +++--
|
|
|
7711c0 |
tests/qemu-iotests/212 | 5 +++--
|
|
|
7711c0 |
tests/qemu-iotests/213 | 5 +++--
|
|
|
7711c0 |
4 files changed, 12 insertions(+), 8 deletions(-)
|
|
|
7711c0 |
|
|
|
7711c0 |
diff --git a/tests/qemu-iotests/210 b/tests/qemu-iotests/210
|
|
|
7711c0 |
index d142841..565e3b7 100755
|
|
|
7711c0 |
--- a/tests/qemu-iotests/210
|
|
|
7711c0 |
+++ b/tests/qemu-iotests/210
|
|
|
7711c0 |
@@ -27,7 +27,8 @@ iotests.verify_image_format(supported_fmts=['luks'])
|
|
|
7711c0 |
iotests.verify_protocol(supported=['file'])
|
|
|
7711c0 |
|
|
|
7711c0 |
def blockdev_create(vm, options):
|
|
|
7711c0 |
- result = vm.qmp_log('blockdev-create', job_id='job0', options=options)
|
|
|
7711c0 |
+ result = vm.qmp_log('blockdev-create', job_id='job0', options=options,
|
|
|
7711c0 |
+ filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
if 'return' in result:
|
|
|
7711c0 |
assert result['return'] == {}
|
|
|
7711c0 |
@@ -53,7 +54,7 @@ with iotests.FilePath('t.luks') as disk_path, \
|
|
|
7711c0 |
'size': 0 })
|
|
|
7711c0 |
|
|
|
7711c0 |
vm.qmp_log('blockdev-add', driver='file', filename=disk_path,
|
|
|
7711c0 |
- node_name='imgfile')
|
|
|
7711c0 |
+ node_name='imgfile', filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
blockdev_create(vm, { 'driver': imgfmt,
|
|
|
7711c0 |
'file': 'imgfile',
|
|
|
7711c0 |
diff --git a/tests/qemu-iotests/211 b/tests/qemu-iotests/211
|
|
|
7711c0 |
index 7b7985d..5d28545 100755
|
|
|
7711c0 |
--- a/tests/qemu-iotests/211
|
|
|
7711c0 |
+++ b/tests/qemu-iotests/211
|
|
|
7711c0 |
@@ -27,7 +27,8 @@ iotests.verify_image_format(supported_fmts=['vdi'])
|
|
|
7711c0 |
iotests.verify_protocol(supported=['file'])
|
|
|
7711c0 |
|
|
|
7711c0 |
def blockdev_create(vm, options):
|
|
|
7711c0 |
- result = vm.qmp_log('blockdev-create', job_id='job0', options=options)
|
|
|
7711c0 |
+ result = vm.qmp_log('blockdev-create', job_id='job0', options=options,
|
|
|
7711c0 |
+ filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
if 'return' in result:
|
|
|
7711c0 |
assert result['return'] == {}
|
|
|
7711c0 |
@@ -51,7 +52,7 @@ with iotests.FilePath('t.vdi') as disk_path, \
|
|
|
7711c0 |
'size': 0 })
|
|
|
7711c0 |
|
|
|
7711c0 |
vm.qmp_log('blockdev-add', driver='file', filename=disk_path,
|
|
|
7711c0 |
- node_name='imgfile')
|
|
|
7711c0 |
+ node_name='imgfile', filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
blockdev_create(vm, { 'driver': imgfmt,
|
|
|
7711c0 |
'file': 'imgfile',
|
|
|
7711c0 |
diff --git a/tests/qemu-iotests/212 b/tests/qemu-iotests/212
|
|
|
7711c0 |
index 95c8810..42b74f2 100755
|
|
|
7711c0 |
--- a/tests/qemu-iotests/212
|
|
|
7711c0 |
+++ b/tests/qemu-iotests/212
|
|
|
7711c0 |
@@ -27,7 +27,8 @@ iotests.verify_image_format(supported_fmts=['parallels'])
|
|
|
7711c0 |
iotests.verify_protocol(supported=['file'])
|
|
|
7711c0 |
|
|
|
7711c0 |
def blockdev_create(vm, options):
|
|
|
7711c0 |
- result = vm.qmp_log('blockdev-create', job_id='job0', options=options)
|
|
|
7711c0 |
+ result = vm.qmp_log('blockdev-create', job_id='job0', options=options,
|
|
|
7711c0 |
+ filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
if 'return' in result:
|
|
|
7711c0 |
assert result['return'] == {}
|
|
|
7711c0 |
@@ -51,7 +52,7 @@ with iotests.FilePath('t.parallels') as disk_path, \
|
|
|
7711c0 |
'size': 0 })
|
|
|
7711c0 |
|
|
|
7711c0 |
vm.qmp_log('blockdev-add', driver='file', filename=disk_path,
|
|
|
7711c0 |
- node_name='imgfile')
|
|
|
7711c0 |
+ node_name='imgfile', filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
blockdev_create(vm, { 'driver': imgfmt,
|
|
|
7711c0 |
'file': 'imgfile',
|
|
|
7711c0 |
diff --git a/tests/qemu-iotests/213 b/tests/qemu-iotests/213
|
|
|
7711c0 |
index 4054439..5604f3c 100755
|
|
|
7711c0 |
--- a/tests/qemu-iotests/213
|
|
|
7711c0 |
+++ b/tests/qemu-iotests/213
|
|
|
7711c0 |
@@ -27,7 +27,8 @@ iotests.verify_image_format(supported_fmts=['vhdx'])
|
|
|
7711c0 |
iotests.verify_protocol(supported=['file'])
|
|
|
7711c0 |
|
|
|
7711c0 |
def blockdev_create(vm, options):
|
|
|
7711c0 |
- result = vm.qmp_log('blockdev-create', job_id='job0', options=options)
|
|
|
7711c0 |
+ result = vm.qmp_log('blockdev-create', job_id='job0', options=options,
|
|
|
7711c0 |
+ filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
if 'return' in result:
|
|
|
7711c0 |
assert result['return'] == {}
|
|
|
7711c0 |
@@ -51,7 +52,7 @@ with iotests.FilePath('t.vhdx') as disk_path, \
|
|
|
7711c0 |
'size': 0 })
|
|
|
7711c0 |
|
|
|
7711c0 |
vm.qmp_log('blockdev-add', driver='file', filename=disk_path,
|
|
|
7711c0 |
- node_name='imgfile')
|
|
|
7711c0 |
+ node_name='imgfile', filters=[iotests.filter_qmp_testfiles])
|
|
|
7711c0 |
|
|
|
7711c0 |
blockdev_create(vm, { 'driver': imgfmt,
|
|
|
7711c0 |
'file': 'imgfile',
|
|
|
7711c0 |
--
|
|
|
7711c0 |
1.8.3.1
|
|
|
7711c0 |
|