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

Dave Chinner david at fromorbit.com
Tue Dec 6 05:16:59 CST 2011


From: Dave Chinner <dchinner at redhat.com>

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 at redhat.com>
---
 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




More information about the xfs mailing list