| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 1/3] generic/004: fix filtering of expected error message |
| From: | Theodore Ts'o <tytso@xxxxxxx> |
| Date: | Sat, 12 Apr 2014 18:55:15 -0400 |
| Cc: | Ext4 Developers List <linux-ext4@xxxxxxxxxxxxxxx>, Theodore Ts'o <tytso@xxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=simple/simple; d=thunk.org; s=mail; t=1397343321; bh=RPOKmpXi/GD7IvwCj07dRSnzlCGVhDTSZf4Iopq0NAM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eJdqn6qUOel1aoY2+sgbM0whI1bbRzIc71mJhmyMQTCu364ObFWsb5PscsBhbmco3 96VLvY1ylPwyd5E8KHsq+FiMRu0Y0HjsV7npv+ICS+C/A8fp2T7oCcBs+GQLXucr2i qGddpPGv+ZGmRDjqBEdfxUMReMhOOj5oc4HqxXcA= |
| In-reply-to: | <1397343317-14669-1-git-send-email-tytso@xxxxxxx> |
| References: | <1397343317-14669-1-git-send-email-tytso@xxxxxxx> |
The failure message goes to stderr, so we need to redirect stderr to
stdout before running sed.
Signed-off-by: "Theodore Ts'o" <tytso@xxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>
---
tests/generic/004 | 2 +-
tests/generic/004.out | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/generic/004 b/tests/generic/004
index 406c29e..23ca349 100755
--- a/tests/generic/004
+++ b/tests/generic/004
@@ -58,7 +58,7 @@ $XFS_IO_PROG -T \
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
diff --git a/tests/generic/004.out b/tests/generic/004.out
index b85c11c..527b2c2 100644
--- a/tests/generic/004.out
+++ b/tests/generic/004.out
@@ -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)
-/mnt/test: Invalid argument
+TEST_DIR: Invalid argument
--
1.9.0
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 3/3] generic/237: fix filtering for expected failure message, Theodore Ts'o |
|---|---|
| Next by Date: | [PATCH 2/3] generic/022: update expected output after the test was renamed, Theodore Ts'o |
| Previous by Thread: | Re: [PATCH 3/3] generic/237: fix filtering for expected failure message, Theodore Ts'o |
| Next by Thread: | Re: [PATCH 1/3] generic/004: fix filtering of expected error message, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |