diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-15 10:15:17 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-15 10:18:05 +0200 |
commit | c09b437b5fab487edd924e09d1732062d7dcf093 (patch) | |
tree | a6e5e7e8e3eb03de196705f809478244008e08ee /tests/qemu-iotests/common.filter | |
parent | 47e5df2146e8b6cd1c093720461928e66f824222 (diff) | |
download | qemu-c09b437b5fab487edd924e09d1732062d7dcf093.tar.gz |
qemu-iotests: filter QEMU_PROG in 051.out
Filter the name of the QEMU executable so the output can be diffed no
matter what QEMU_PROG is (e.g. qemu-system-x86_64).
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.filter')
-rw-r--r-- | tests/qemu-iotests/common.filter | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter index fa26b62dd3..bc5f250cab 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -152,5 +152,11 @@ _filter_qemu_io() _filter_win32 | sed -e "s/[0-9]* ops\; [0-9/:. sec]* ([0-9/.inf]* [EPTGMKiBbytes]*\/sec and [0-9/.inf]* ops\/sec)/X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/" } +# replace occurrences of QEMU_PROG with "qemu" +_filter_qemu() +{ + sed -e "s#$(basename $QEMU_PROG)#QEMU_PROG#g" +} + # make sure this script returns success /bin/true |