]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
tests/qemu-iotests: Use GNU sed in two more spots where it is necessary
authorThomas Huth <thuth@redhat.com>
Wed, 9 Mar 2022 10:16:26 +0000 (11:16 +0100)
committerHanna Reitz <hreitz@redhat.com>
Tue, 22 Mar 2022 08:40:54 +0000 (09:40 +0100)
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>
tests/qemu-iotests/common.filter

index 9790411bf0e468006e80f8259c479268a62706f4..cc9f1a58911d99f2e8be19f9029a69d8582c8b7b 100644 (file)
@@ -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)