generic/565: change to use filter _filter_testdir_and_scratch

If $TEST_DIR is a substring of $SCRATCH_MNT (like /mnt and /mnt2),
this test always fail. Change to use _filter_testdir_and_scratch
which will filter the longer string first if the other string is a
substring of the longer one.

Signed-off-by: Yongcheng Yang <yongcheng.yang@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Yongcheng Yang
2020-04-03 08:32:31 +08:00
committed by Eryu Guan
parent e31cbea25e
commit b6093d0eed
+1 -1
View File
@@ -57,7 +57,7 @@ echo $testio | grep -q "cross-device" && \
echo -n $testio
cmp $testdir/file $SCRATCH_MNT/copy
echo "md5sums after xdev copy:"
md5sum $testdir/file $SCRATCH_MNT/copy | _filter_test_dir | _filter_scratch
md5sum $testdir/file $SCRATCH_MNT/copy | _filter_testdir_and_scratch
# success, all done
status=0