From b6093d0eed59739ad952af1d22320660264e1aad Mon Sep 17 00:00:00 2001 From: Yongcheng Yang Date: Fri, 3 Apr 2020 08:32:31 +0800 Subject: [PATCH] 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 Reviewed-by: Zorro Lang Signed-off-by: Eryu Guan --- tests/generic/565 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/565 b/tests/generic/565 index 39eb20c8..41d85b91 100755 --- a/tests/generic/565 +++ b/tests/generic/565 @@ -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 -- 2.30.2