mirror of https://github.com/xemu-project/xemu.git
qemu-iotests: Filter out DOS line endings
This one makes it possible to run qemu-iotests on a Windows build using Wine and get somewhat meaningful results. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
37ce63eb23
commit
a06d5cc20b
|
@ -140,10 +140,16 @@ _filter_imgfmt()
|
||||||
sed -e "s#$IMGFMT#IMGFMT#g"
|
sed -e "s#$IMGFMT#IMGFMT#g"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Removes \r from messages
|
||||||
|
_filter_win32()
|
||||||
|
{
|
||||||
|
sed -e 's/\r//g'
|
||||||
|
}
|
||||||
|
|
||||||
# sanitize qemu-io output
|
# sanitize qemu-io output
|
||||||
_filter_qemu_io()
|
_filter_qemu_io()
|
||||||
{
|
{
|
||||||
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)/"
|
_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)/"
|
||||||
}
|
}
|
||||||
|
|
||||||
# make sure this script returns success
|
# make sure this script returns success
|
||||||
|
|
Loading…
Reference in New Issue