]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-iotests: consider more cases in parsing qemu-io output
authorKevin Wolf <kwolf@redhat.com>
Fri, 1 Oct 2010 04:02:28 +0000 (06:02 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Feb 2012 15:17:03 +0000 (16:17 +0100)
I got a bug report with test output diffs like this:

-4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+4 KiB, 1 ops; 0.0000 sec (inf EiB/sec and inf ops/sec)

This patch extends the regular expression to consider terabytes, petabytes and
exabytes, and to allow inf as value for the throughput.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
tests/qemu-iotests/common.filter

index ce81266ef73a6d2963c82657bc5e31fe536c2b00..da55f545a596f28c727e215c45102b2adfd10057 100644 (file)
@@ -137,7 +137,7 @@ _filter_testdir()
 # sanitize qemu-io output
 _filter_qemu_io()
 {
-    sed -e "s/[0-9]* ops\; [0-9/:. sec]* ([0-9/.]* [GMKiBbytes]*\/sec and [0-9/.]* ops\/sec)/X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/"
+    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