xfs
[Top] [All Lists]

[PATCH 2/2] xfstests: ln failure output has changed again

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/2] xfstests: ln failure output has changed again
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 6 Dec 2011 22:16:59 +1100
In-reply-to: <1323170219-16080-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1323170219-16080-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 103 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/103 b/103
index 1c9994e..e383991 100755
--- 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()
-- 
1.7.5.4

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