Skip to contentSkip to conversation

Consider more cases in parsing qemu-io output

PATCH Applied Kevin Wolf 2 participants 2 messages Sep 21, 2010 – Oct 1, 2010

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 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.

---
 common.filter |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common.filter +1 -1
index ce81266..da55f54 100644
@@ -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
Signature · 1 line
1.7.2.2