diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-10-01 06:02:28 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-22 16:17:03 +0100 |
commit | 72bb202583ad71f3e9e0c03a0c9a3baa0db16494 (patch) | |
tree | 6708f0412db5a120e8a2795daeadf535026df310 /tests/qemu-iotests | |
parent | 52280eac0d492b1191c1391c49a40ebf5e006748 (diff) | |
download | qemu-72bb202583ad71f3e9e0c03a0c9a3baa0db16494.zip qemu-72bb202583ad71f3e9e0c03a0c9a3baa0db16494.tar.gz qemu-72bb202583ad71f3e9e0c03a0c9a3baa0db16494.tar.bz2 |
qemu-iotests: consider more cases in parsing qemu-io output
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>
Diffstat (limited to 'tests/qemu-iotests')
-rw-r--r-- | tests/qemu-iotests/common.filter | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter index ce81266..da55f54 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -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 |