mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 23:22:12 -06:00
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>
This commit is contained in:
parent
cd4c0da6db
commit
bf1695c252
2 changed files with 8 additions and 1 deletions
|
@ -90,7 +90,7 @@ echo
|
||||||
reply="$(_send_qemu_cmd $src \
|
reply="$(_send_qemu_cmd $src \
|
||||||
"{ 'execute': 'migrate',
|
"{ 'execute': 'migrate',
|
||||||
'arguments': { 'uri': 'unix:${MIG_SOCKET}', 'blk': true } }" \
|
'arguments': { 'uri': 'unix:${MIG_SOCKET}', 'blk': true } }" \
|
||||||
'return\|error')"
|
'return\|error' | _filter_migration_block_deprecated)"
|
||||||
echo "$reply"
|
echo "$reply"
|
||||||
if echo "$reply" | grep "compiled without old-style" > /dev/null; then
|
if echo "$reply" | grep "compiled without old-style" > /dev/null; then
|
||||||
_notrun "migrate -b support not compiled in"
|
_notrun "migrate -b support not compiled in"
|
||||||
|
|
|
@ -359,5 +359,12 @@ _filter_qcow2_compression_type_bit()
|
||||||
-e 's/\(incompatible_features.*\), 3\(,.*\)/\1\2/'
|
-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
|
# make sure this script returns success
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue