xfs
[Top] [All Lists]

[PATCH] xfstests: fix 130, 132 for inifinitely-fast disks

To: xfs mailing list <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: fix 130, 132 for inifinitely-fast disks
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Thu, 23 Apr 2009 13:29:13 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20090105)
Due to the new quantum/holographic storage I'm testing, my 
disks go infinitely fast, thereby breaking some filters:

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

I'm no regexp expert but I think the below change will fix it.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxxx>
---

diff --git a/130 b/130
index f287d20..b0bbe73 100755
--- a/130
+++ b/130
@@ -51,7 +51,7 @@ common_line_filter()
 
 _filter_xfs_io()
 {
-    common_line_filter | sed -e "s/[0-9/.]* [GMKiBbytes]*, [0-9]* ops\; 
[0-9/:. sec]* ([0-9/.]* [GMKiBbytes]*\/sec and [0-9/.]* ops\/sec)/XXX Bytes, X 
ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/"
+    common_line_filter | sed -e "s/[0-9/.]* [GMKiBbytes]*, [0-9]* ops\; 
[0-9/:. sec]* ([inf0-9/.]* [EPGMKiBbytes]*\/sec and [inf0-9/.]* ops\/sec)/XXX 
Bytes, X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/"
 }
 
 # real QA test starts here
diff --git a/132 b/132
index df3d3d3..f373256 100755
--- a/132
+++ b/132
@@ -43,7 +43,7 @@ common_line_filter()
 
 _filter_xfs_io()
 {
-    common_line_filter | sed -e "s/[0-9/.]* [GMKiBbytes]*, [0-9]* ops\; 
[0-9/:. sec]* ([0-9/.]* [GMKiBbytes]*\/sec and [0-9/.]* ops\/sec)/XXX Bytes, X 
ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/"
+    common_line_filter | sed -e "s/[0-9/.]* [GMKiBbytes]*, [0-9]* ops\; 
[0-9/:. sec]* ([inf0-9/.]* [EPGMKiBbytes]*\/sec and [inf0-9/.]* ops\/sec)/XXX 
Bytes, X ops\; XX:XX:XX.X (XXX YYY\/sec and XXX ops\/sec)/"
 }
 
 # real QA test starts here

<Prev in Thread] Current Thread [Next in Thread>