aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2022-03-09 11:16:26 +0100
committerHanna Reitz <hreitz@redhat.com>2022-03-22 09:40:54 +0100
commitab101297cb120a73c4ef1646fb09438f7f590f34 (patch)
tree27352e3fb4659415d4f3b151e2e1afe32878562e
parentcc5387a544325c26dcf124ac7d3999389c24e5c6 (diff)
downloadqemu-ab101297cb120a73c4ef1646fb09438f7f590f34.zip
qemu-ab101297cb120a73c4ef1646fb09438f7f590f34.tar.gz
qemu-ab101297cb120a73c4ef1646fb09438f7f590f34.tar.bz2
tests/qemu-iotests: Use GNU sed in two more spots where it is necessary
These two spots have been missed in commit 9086c7639822 ("Rework the checks and spots using GNU sed") - they need GNU sed, too, since they are using the "+" address form. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220309101626.637836-1-thuth@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
-rw-r--r--tests/qemu-iotests/common.filter4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index 9790411..cc9f1a5 100644
--- a/tests/qemu-iotests/common.filter
+++ b/tests/qemu-iotests/common.filter
@@ -106,13 +106,13 @@ _filter_hmp()
# replace block job offset
_filter_block_job_offset()
{
- sed -e 's/, "offset": [0-9]\+,/, "offset": OFFSET,/'
+ gsed -e 's/, "offset": [0-9]\+,/, "offset": OFFSET,/'
}
# replace block job len
_filter_block_job_len()
{
- sed -e 's/, "len": [0-9]\+,/, "len": LEN,/g'
+ gsed -e 's/, "len": [0-9]\+,/, "len": LEN,/g'
}
# replace actual image size (depends on the host filesystem)