aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-10-18 13:55:09 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-31 08:44:33 +0100
commitbf1695c2523510ff8945d88c971b25baac66543d (patch)
treeb19cd8f48da008fdf0c80e419da58db6afaec520 /tests
parentcd4c0da6dbeac5cc986a4a553c722cbf4b3d0300 (diff)
downloadqemu-bf1695c2523510ff8945d88c971b25baac66543d.zip
qemu-bf1695c2523510ff8945d88c971b25baac66543d.tar.gz
qemu-bf1695c2523510ff8945d88c971b25baac66543d.tar.bz2
qemu-iotests: Filter warnings about block migration being deprecated
Create a new filter that removes the two warnings for test 183. Reviewed-by: Hanna Czenczek <hreitz@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231018115513.2163-2-quintela@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qemu-iotests/1832
-rw-r--r--tests/qemu-iotests/common.filter7
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/qemu-iotests/183 b/tests/qemu-iotests/183
index ee62939..b857704 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 fc3c64b..2846c83 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