qemu-iotests: filter QEMU_PROG in 051.out
PATCH 1/1 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 <[email protected]>
--- tests/qemu-iotests/051 | 2 +- tests/qemu-iotests/051.out | 72 ++++++++++++++++++++-------------------- tests/qemu-iotests/common.filter | 6 ++++ 3 files changed, 43 insertions(+), 37 deletions(-)
tests/qemu-iotests/051 +1 -1
@@ -51,7 +51,7 @@ function do_run_qemu() function run_qemu() { - do_run_qemu "$@" 2>&1 | _filter_testdir + do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu } size=128M
tests/qemu-iotests/051.out +36 -36
141 lines not on this page · raw message
tests/qemu-iotests/common.filter +6 -0
@@ -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
Signature · 1 line
1.8.1.4