notrun the test if the filesystem is not supported. on unsupported fs ,the test may have different result. --- tests/generic/401 | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/generic/401 b/tests/generic/401 index 74f2bea5..1c790a33 100755 --- a/tests/generic/401 +++ b/tests/generic/401 @@ -3,9 +3,7 @@ # # Test filetype feature # -# This test does NOT require that file system support the d_type feature. -# It verifies that either all file types are reported as DT_UNKNOWN -# or all file types are reported correctly. +# This test not run if that file system support the d_type feature. # # For fs for which we know how to test the filetype feature (xfs|ext*) # verify getting DT_UNKNOWN IFF feature is disabled. @@ -83,12 +81,7 @@ if _supports_filetype $SCRATCH_MNT; then # print real file types src/t_dir_type $testdir | grep -vF '.' | sort else - # print fake dir file type for . and .. if they are DT_UNKNOWN - src/t_dir_type $testdir u | grep -F '.' | \ - awk '{ print $1, "d" }' | sort - # list unknown files and print filename as fake file type - src/t_dir_type $testdir u | grep -vF '.' | \ - awk '{ print $1, $1 }' | sort + _notrun "test not support on this filesystem" fi status=0 -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html