xfs/029: filter out "extended-header: cycle: 1" from output
[xfstests-dev.git] / tests / xfs / 029
index f532a21b8cb727742478a2870ac36f1c931d6a48..dbe700ab845e060680e1b8f98f5ecf6fe26752b5 100755 (executable)
@@ -19,7 +19,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
 . ./common/rc
 . ./common/filter
 
 . ./common/rc
 . ./common/filter
 
-_filter_logprint()
+filter_logprint()
 {
        perl -ne '
            s/data device: ([\w|\/.-]+)/data device: DDEV/;
 {
        perl -ne '
            s/data device: ([\w|\/.-]+)/data device: DDEV/;
@@ -31,6 +31,8 @@ _filter_logprint()
             s/(length of Log Record:) \d+/$1 <LEN>/;
             s/version: \d/version: <VERN>/;
            s/h_size: \d+/h_size: <H_SIZE>/;
             s/(length of Log Record:) \d+/$1 <LEN>/;
             s/version: \d/version: <VERN>/;
            s/h_size: \d+/h_size: <H_SIZE>/;
+           s/^~+[\r|\n]+$//;
+           s/extended-header: cycle: 1[\r|\n]+$//;
            print;
        '
 }
            print;
        '
 }
@@ -45,7 +47,7 @@ echo
 _scratch_mkfs_xfs | _filter_mkfs 2>/dev/null
 
 echo
 _scratch_mkfs_xfs | _filter_mkfs 2>/dev/null
 
 echo
-_scratch_xfs_logprint | _filter_logprint
+_scratch_xfs_logprint | filter_logprint
 
 status=0
 exit
 
 status=0
 exit