generic/565: change to use filter _filter_testdir_and_scratch
authorYongcheng Yang <yongcheng.yang@gmail.com>
Fri, 3 Apr 2020 00:32:31 +0000 (08:32 +0800)
committerEryu Guan <guaneryu@gmail.com>
Mon, 6 Apr 2020 12:38:43 +0000 (20:38 +0800)
commitb6093d0eed59739ad952af1d22320660264e1aad
treeac430557c4fbc67af9d903553155c16bdbd463f2
parente31cbea25efabb92cefaf8194847c5bd5c855ace
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>
tests/generic/565