mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
qemu-iotests: Fix _filter_qemu
$QEMU_PROG happens to be 'qemu' in my setup, so this sed command replaces a bit too much. Restrict it to the start of the line and to when it's followed by a colon, i.e. the form used by error messages. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
54f106d5fd
commit
bdda92324d
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ _filter_qemu_io()
|
||||||
# replace occurrences of QEMU_PROG with "qemu"
|
# replace occurrences of QEMU_PROG with "qemu"
|
||||||
_filter_qemu()
|
_filter_qemu()
|
||||||
{
|
{
|
||||||
sed -e "s#$(basename $QEMU_PROG)#QEMU_PROG#g"
|
sed -e "s#^$(basename $QEMU_PROG):#QEMU_PROG:#"
|
||||||
}
|
}
|
||||||
|
|
||||||
# make sure this script returns success
|
# make sure this script returns success
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue