generic/004: fix filtering of expected error message
authorTheodore Ts'o <tytso@mit.edu>
Mon, 14 Apr 2014 00:37:33 +0000 (10:37 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 00:37:33 +0000 (10:37 +1000)
The failure message goes to stderr, so we need to redirect stderr to
stdout before running sed.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/004
tests/generic/004.out

index 406c29e332e59fa9fa4f274b1149894b468172e0..23ca34901888e54d5853a24c38000f9b1d7d15e4 100755 (executable)
@@ -58,7 +58,7 @@ $XFS_IO_PROG -T \
 rm ${testfile}
 
 # test creating a r/o tmpfile.  Should fail
 rm ${testfile}
 
 # test creating a r/o tmpfile.  Should fail
-$XFS_IO_PROG -Tr ${TEST_DIR} -c "close" | _filter_test_dir
+$XFS_IO_PROG -Tr ${TEST_DIR} -c "close" 2>&1 | _filter_test_dir
 
 # success, all done
 status=0
 
 # success, all done
 status=0
index b85c11c4e36300acf19dfe12f63c54042e331621..527b2c26527fd02a451830f423bf351093ccd707 100644 (file)
@@ -3,4 +3,4 @@ wrote 4096/4096 bytes at offset 0
 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 read 4096/4096 bytes at offset 0
 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 read 4096/4096 bytes at offset 0
 XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-/mnt/test: Invalid argument
+TEST_DIR: Invalid argument