qemu-iotests: Fix _filter_qemu
authorKevin Wolf <kwolf@redhat.com>
Tue, 16 Apr 2013 09:22:36 +0000 (11:22 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Apr 2013 08:27:58 +0000 (10:27 +0200)
$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>
tests/qemu-iotests/common.filter

index bc5f250cab91fc70b04ee2d92d290eba546bc231..dcf6391ea2339081d62af325940984843d44df9a 100644 (file)
@@ -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