Skip to contentSkip to conversation

xfsqa - fix redirection in 091

PATCH In review David Chinner 3 participants 3 messages Apr 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsqa - fix redirection in 091

Fix the filtering of xfsinfo by punting stdout to /dev/null.

---
 xfstests/091 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xfstests/091 +1 -1
Index: xfs-cmds/xfstests/091
===================================================================
@@ -50,7 +50,7 @@ kernel=`uname -r  | sed -e 's/\(2\..\).*
 
 # 2.6 Linux kernels support sector aligned direct I/O only
 if [ "$HOSTOS" = "Linux" -a "$kernel" = "2.6" ]; then
-	xfs_info $TEST_DIR | _filter_mkfs 2> $tmp.info
+	xfs_info $TEST_DIR | _filter_mkfs 2> $tmp.info > /dev/null
 	if [ $? -eq 0 ]; then
 		source $tmp.info
 		bsize=$sectsz
#1 lore raw
Quoted 1 line · David Chinner

Fix the filtering of xfsinfo by punting stdout to /dev/null.

Ok.

Quoted 19 lines
---
 xfstests/091 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: xfs-cmds/xfstests/091
===================================================================

xfstests/091 +1 -1
@@ -50,7 +50,7 @@ kernel=`uname -r  | sed -e 's/\(2\..\).*
 # 2.6 Linux kernels support sector aligned direct I/O only
 if [ "$HOSTOS" = "Linux" -a "$kernel" = "2.6" ]; then
-	xfs_info $TEST_DIR | _filter_mkfs 2> $tmp.info
+	xfs_info $TEST_DIR | _filter_mkfs 2> $tmp.info > /dev/null
 	if [ $? -eq 0 ]; then
 		source $tmp.info
 		bsize=$sectsz
 
#2 lore raw
In reply to David Chinner
Quoted 12 lines · David Chinner

Fix the filtering of xfsinfo by punting stdout to /dev/null.

---
 xfstests/091 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: xfs-cmds/xfstests/091
===================================================================

xfstests/091 kernel=`uname -r | sed -e 's/\(2\..\).* · line 56

Quoted 8 lines
xfstests/091 +1 -1
@@ -50,7 +50,7 @@ kernel=`uname -r  | sed -e 's/\(2\..\).*
 
 # 2.6 Linux kernels support sector aligned direct I/O only
 if [ "$HOSTOS" = "Linux" -a "$kernel" = "2.6" ]; then
-	xfs_info $TEST_DIR | _filter_mkfs 2> $tmp.info
+	xfs_info $TEST_DIR | _filter_mkfs 2> $tmp.info > /dev/null
 	if [ $? -eq 0 ]; then
 		source $tmp.info
 		bsize=$sectsz

fine

--Tim