From: Juan Quintela <quintela@redhat.com>
To: qemu-devel@nongnu.org
Cc: Juan Quintela <quintela@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Fabiano Rosas <farosas@suse.de>, Kevin Wolf <kwolf@redhat.com>,
Eric Blake <eblake@redhat.com>,
qemu-block@nongnu.org, Leonardo Bras <leobras@redhat.com>,
Markus Armbruster <armbru@redhat.com>, Fam Zheng <fam@euphon.net>,
Peter Xu <peterx@redhat.com>,
libvir-list@redhat.com, Hanna Reitz <hreitz@redhat.com>
Subject: [PATCH v8 1/5] qemu-iotests: Filter warnings about block migration being deprecated
Date: Wed, 18 Oct 2023 13:55:09 +0200 [thread overview]
Message-ID: <20231018115513.2163-2-quintela@redhat.com> (raw)
In-Reply-To: <20231018115513.2163-1-quintela@redhat.com>
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(-)
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
--
2.41.0
next prev parent reply other threads:[~2023-10-18 11:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-18 11:55 [PATCH v8 0/5] Migration deprecated parts Juan Quintela
2023-10-18 11:55 ` Juan Quintela [this message]
2023-10-24 11:11 ` [PATCH v8 1/5] qemu-iotests: Filter warnings about block migration being deprecated Hanna Czenczek
2023-10-24 11:23 ` Juan Quintela
2023-10-18 11:55 ` [PATCH v8 2/5] migration: migrate 'inc' command option is deprecated Juan Quintela
2023-10-18 11:55 ` [PATCH v8 3/5] migration: migrate 'blk' " Juan Quintela
2023-10-18 11:55 ` [PATCH v8 4/5] migration: Deprecate block migration Juan Quintela
2023-10-18 11:55 ` [PATCH v8 5/5] migration: Deprecate old compression method Juan Quintela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231018115513.2163-2-quintela@redhat.com \
--to=quintela@redhat.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=fam@euphon.net \
--cc=farosas@suse.de \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=leobras@redhat.com \
--cc=libvir-list@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).