diff mbox series

[v8,1/5] qemu-iotests: Filter warnings about block migration being deprecated

Message ID 20231018115513.2163-2-quintela@redhat.com (mailing list archive)
State New, archived
Headers show
Series Migration deprecated parts | expand

Commit Message

Juan Quintela Oct. 18, 2023, 11:55 a.m. UTC
Create a new filter that removes the two warnings for test 183.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 tests/qemu-iotests/183           | 2 +-
 tests/qemu-iotests/common.filter | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

Comments

Hanna Czenczek Oct. 24, 2023, 11:11 a.m. UTC | #1
On 18.10.23 13:55, Juan Quintela wrote:
> Create a new filter that removes the two warnings for test 183.
>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>   tests/qemu-iotests/183           | 2 +-
>   tests/qemu-iotests/common.filter | 7 +++++++
>   2 files changed, 8 insertions(+), 1 deletion(-)

Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Juan Quintela Oct. 24, 2023, 11:23 a.m. UTC | #2
Hanna Czenczek <hreitz@redhat.com> wrote:
> On 18.10.23 13:55, Juan Quintela wrote:
>> Create a new filter that removes the two warnings for test 183.
>>
>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>> ---
>>   tests/qemu-iotests/183           | 2 +-
>>   tests/qemu-iotests/common.filter | 7 +++++++
>>   2 files changed, 8 insertions(+), 1 deletion(-)
>
> Reviewed-by: Hanna Czenczek <hreitz@redhat.com>

Thanks.
diff mbox series

Patch

diff --git a/tests/qemu-iotests/183 b/tests/qemu-iotests/183
index ee62939e72..b85770458e 100755
--- a/tests/qemu-iotests/183
+++ b/tests/qemu-iotests/183
@@ -90,7 +90,7 @@  echo
 reply="$(_send_qemu_cmd $src \
     "{ 'execute': 'migrate',
        'arguments': { 'uri': 'unix:${MIG_SOCKET}', 'blk': true } }" \
-    'return\|error')"
+    'return\|error' | _filter_migration_block_deprecated)"
 echo "$reply"
 if echo "$reply" | grep "compiled without old-style" > /dev/null; then
     _notrun "migrate -b support not compiled in"
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index fc3c64bcb8..2846c83808 100644
--- a/tests/qemu-iotests/common.filter
+++ b/tests/qemu-iotests/common.filter
@@ -359,5 +359,12 @@  _filter_qcow2_compression_type_bit()
         -e 's/\(incompatible_features.*\), 3\(,.*\)/\1\2/'
 }
 
+# filter warnings caused for block migration deprecation
+_filter_migration_block_deprecated()
+{
+    gsed -e '/warning: parameter .blk. is deprecated; use blockdev-mirror with NBD instead/d' \
+         -e '/warning: block migration is deprecated; use blockdev-mirror with NBD instead/d'
+}
+
 # make sure this script returns success
 true