xfs
[Top] [All Lists]

[PATCH] xfstests: filter 203 mount point

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: filter 203 mount point
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 23 Mar 2010 22:27:16 -0500
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)
Right now this only works if TEST_DIR == /mnt/test

diff --git a/203 b/203
index 174bdae..80c449d 100755
--- a/203
+++ b/203
@@ -48,6 +48,7 @@ _write_holes()
 #       1: [8..2047]: hole
 _filter_bmap()
 {
+       sed "s#$TEST_DIR#TEST_DIR#g" | \
        awk '$3 ~ /hole/ { print $1, $2, $3; next }
              {print $1, $2; next}'
 }
diff --git a/203.out b/203.out
index 1b1bddc..1694457 100644
--- a/203.out
+++ b/203.out
@@ -1,5 +1,5 @@
 QA output created by 203
-/mnt/test/hole_file10: 
+TEST_DIR/hole_file10: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -24,7 +24,7 @@ QA output created by 203
 21: [20488..22527]: hole
 22: [22528..22535]:
 
-/mnt/test/hole_file14: 
+TEST_DIR/hole_file14: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -57,7 +57,7 @@ QA output created by 203
 29: [28680..30719]: hole
 30: [30720..30727]:
 
-/mnt/test/hole_file15: 
+TEST_DIR/hole_file15: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -92,7 +92,7 @@ QA output created by 203
 31: [30728..32767]: hole
 32: [32768..32775]:
 
-/mnt/test/hole_file16: 
+TEST_DIR/hole_file16: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -129,7 +129,7 @@ QA output created by 203
 33: [32776..34815]: hole
 34: [34816..34823]:
 
-/mnt/test/hole_file17: 
+TEST_DIR/hole_file17: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -168,7 +168,7 @@ QA output created by 203
 35: [34824..36863]: hole
 36: [36864..36871]:
 
-/mnt/test/hole_file28: 
+TEST_DIR/hole_file28: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -229,7 +229,7 @@ QA output created by 203
 57: [57352..59391]: hole
 58: [59392..59399]:
 
-/mnt/test/hole_file29: 
+TEST_DIR/hole_file29: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -292,7 +292,7 @@ QA output created by 203
 59: [59400..61439]: hole
 60: [61440..61447]:
 
-/mnt/test/hole_file30: 
+TEST_DIR/hole_file30: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:
@@ -357,7 +357,7 @@ QA output created by 203
 61: [61448..63487]: hole
 62: [63488..63495]:
 
-/mnt/test/hole_file31: 
+TEST_DIR/hole_file31: 
 0: [0..7]:
 1: [8..2047]: hole
 2: [2048..2055]:

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