* [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary
@ 2022-03-09 10:16 Thomas Huth
2022-03-09 13:55 ` Eric Blake
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Huth @ 2022-03-09 10:16 UTC (permalink / raw)
To: qemu-block, Kevin Wolf, Hanna Reitz; +Cc: Eric Blake, qemu-devel
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>
---
tests/qemu-iotests/common.filter | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index 21819db9c3..f6e6b3bd04 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)
--
2.27.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary
2022-03-09 10:16 [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary Thomas Huth
@ 2022-03-09 13:55 ` Eric Blake
2022-03-09 17:04 ` Philippe Mathieu-Daudé
2022-03-18 16:46 ` Hanna Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2022-03-09 13:55 UTC (permalink / raw)
To: Thomas Huth; +Cc: Kevin Wolf, Hanna Reitz, qemu-devel, qemu-block
On Wed, Mar 09, 2022 at 11:16:26AM +0100, Thomas Huth wrote:
> 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>
> ---
> tests/qemu-iotests/common.filter | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Simpler than rewriting as [0-9][0-9]* for non-GNU sed.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary
2022-03-09 10:16 [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary Thomas Huth
2022-03-09 13:55 ` Eric Blake
@ 2022-03-09 17:04 ` Philippe Mathieu-Daudé
2022-03-18 16:46 ` Hanna Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-03-09 17:04 UTC (permalink / raw)
To: Thomas Huth, qemu-block, Kevin Wolf, Hanna Reitz; +Cc: Eric Blake, qemu-devel
On 9/3/22 11:16, Thomas Huth wrote:
> 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>
> ---
> tests/qemu-iotests/common.filter | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary
2022-03-09 10:16 [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary Thomas Huth
2022-03-09 13:55 ` Eric Blake
2022-03-09 17:04 ` Philippe Mathieu-Daudé
@ 2022-03-18 16:46 ` Hanna Reitz
2 siblings, 0 replies; 4+ messages in thread
From: Hanna Reitz @ 2022-03-18 16:46 UTC (permalink / raw)
To: Thomas Huth, qemu-block, Kevin Wolf; +Cc: Eric Blake, qemu-devel
On 09.03.22 11:16, Thomas Huth wrote:
> 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>
> ---
> tests/qemu-iotests/common.filter | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to my block branch:
https://gitlab.com/hreitz/qemu/-/commits/block
Hanna
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-03-18 16:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 10:16 [PATCH] tests/qemu-iotests: Use GNU sed in two more spots where it is necessary Thomas Huth
2022-03-09 13:55 ` Eric Blake
2022-03-09 17:04 ` Philippe Mathieu-Daudé
2022-03-18 16:46 ` Hanna Reitz
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).