]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/401: fix test in case of no filetype support
authorAmir Goldstein <amir73il@gmail.com>
Tue, 5 Jun 2018 08:08:50 +0000 (11:08 +0300)
committerEryu Guan <guaneryu@gmail.com>
Thu, 7 Jun 2018 10:41:10 +0000 (18:41 +0800)
commitb22c18ca9c0196d15ede794168d5a3963c146beb
tree939fb8033ec635ca10f143fb39919749c4ffe504
parent668a411a739c44a2f8bed45cb0fea23d0f6ef08d
generic/401: fix test in case of no filetype support

Xu Huan reported that this test fails on nfs in some setup.
Apparently, the assumptions made about xfs/ext* do not hold
for nfs.

Relax the verification of filetype not supported case to
allow either DT_UNKNOWN or actual file type on all files and
not only on special dir entires "." and "..".

Convert the unknown d_type replacement code from awk to bash
so it is a bit more readable and flexible.

Reported-by: Xu Huan <xuhuan.fnst@cn.fujitsu.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Tested-by: Xu Huan <xuhuan.fnst@cn.fujitsu.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/401