In some setup, there could be extra attrs printed, like selinux.
They are breaking golden output and irrelevant for this test.
So focus on the attr we are testing on to avoid false alarm.
Print the output to .full for debug.
Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
_scratch_mount >>$seqres.full 2>&1
filter_attr_output() {
- _filter_scratch | sed -e 's/has a [0-9]* byte value/has a NNNN byte value/g'
+ _filter_scratch | grep world | \
+ sed -e 's/has a [0-9]* byte value/has a NNNN byte value/g'
}
./src/attr_replace_test $SCRATCH_MNT/hello
+$ATTR_PROG -l $SCRATCH_MNT/hello >>$seqres.full 2>&1
$ATTR_PROG -l $SCRATCH_MNT/hello | filter_attr_output
status=0