aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-04-16 11:22:36 +0200
committerKevin Wolf <kwolf@redhat.com>2013-04-22 10:27:58 +0200
commitbdda92324dad963e85589e9ea74b2f2620319304 (patch)
tree9d27a28b9b87d50e25f161bb73890736556d92f9 /tests
parent54f106d5fd51fcf385bab2ddf125477e83758038 (diff)
downloadqemu-bdda92324dad963e85589e9ea74b2f2620319304.zip
qemu-bdda92324dad963e85589e9ea74b2f2620319304.tar.gz
qemu-bdda92324dad963e85589e9ea74b2f2620319304.tar.bz2
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/common.filter2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
index bc5f250..dcf6391 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