xfstests: ln failure output has changed again
authorDave Chinner <dchinner@redhat.com>
Tue, 6 Dec 2011 11:16:59 +0000 (22:16 +1100)
committerChristoph Hellwig <hch@lst.de>
Thu, 8 Dec 2011 17:11:38 +0000 (17:11 +0000)
Recent coreutils packages have changed the failure output of ln(1)
(again!) to be more verbose, breaking the filter in test 103:

-ln: creating symbolic link `SCRATCH_MNT/nosymlink/target' to `SCRATCH_MNT/nosymlink/source': Operation not permitted
+ln: failed to create symbolic link `SCRATCH_MNT/nosymlink/target' to `SCRATCH_MNT/nosymlink/source': Operation not permitted

Fix it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
103

diff --git a/103 b/103
index 1c9994e00b78ddc9237a03d1993f155ec2e6484f..e383991b6bde01495747888ffc0aa97070b21646 100755 (executable)
--- a/103
+++ b/103
@@ -57,7 +57,8 @@ _create_scratch()
 _filter_ln()
 {
     sed -e "s,SCRATCH_MNT/nosymlink/target - Operation not permitted,ln: creating symbolic link \`SCRATCH_MNT/nosymlink/target\' to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g" \
-        -e "/SCRATCH_MNT.*to.*SCRATCH_MNT/! s,: Operation not permitted, to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g"
+        -e "/SCRATCH_MNT.*to.*SCRATCH_MNT/! s,: Operation not permitted, to \`SCRATCH_MNT/nosymlink/source\': Operation not permitted,g" \
+       -e "s,failed to create,creating,"
 }
 
 _filter_noymlinks_flag()