Skip to content

Commit

Permalink
qemu-iotests: Fix _filter_qemu
Browse files Browse the repository at this point in the history
$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>
  • Loading branch information
kevmw committed Apr 22, 2013
1 parent 54f106d commit bdda923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/qemu-iotests/common.filter
Expand Up @@ -155,7 +155,7 @@ _filter_qemu_io()
# replace occurrences of QEMU_PROG with "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
Expand Down

0 comments on commit bdda923

Please sign in to comment.