From: Murphy Zhou Date: Thu, 27 Jun 2019 09:00:59 +0000 (+0800) Subject: generic/486: filter out irrelevant attrs X-Git-Tag: v2022.05.01~1110 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2effc0975a1f43223cce182db19a2d60eb7893c6;p=users%2Fhch%2Fxfstests-dev.git generic/486: filter out irrelevant attrs 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 Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/tests/generic/486 b/tests/generic/486 index ff115a07a..ea571efed 100755 --- a/tests/generic/486 +++ b/tests/generic/486 @@ -46,10 +46,12 @@ _scratch_mkfs >>$seqres.full 2>&1 _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