From: Kevin Wolf Date: Tue, 16 Apr 2013 09:22:36 +0000 (+0200) Subject: qemu-iotests: Fix _filter_qemu X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bdda92324dad963e85589e9ea74b2f2620319304;p=qemu.git 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 Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter index bc5f250cab..dcf6391ea2 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -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