From: Eric Sandeen Date: Fri, 23 Jun 2017 16:12:41 +0000 (-0500) Subject: generic/401: Test mountpoint not subdir for filetype support X-Git-Tag: v2022.05.01~2001 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3ce66a229ddb8e305561085d1dfbf67defb2640a;p=users%2Fhch%2Fxfstests-dev.git generic/401: Test mountpoint not subdir for filetype support With pending changes for xfs_info/xfs_growfs, the tool now requires an actual mount point to work properly. Change this test to test $SCRATCH_MNT not the subdir beneath it. Signed-off-by: Eric Sandeen Reviewed-by: Bill O'Donnell Signed-off-by: Eryu Guan --- diff --git a/tests/generic/401 b/tests/generic/401 index 04bd1a594..74f2bea5a 100755 --- a/tests/generic/401 +++ b/tests/generic/401 @@ -79,7 +79,7 @@ mknod $testdir/p p src/t_dir_type $testdir d | grep -F '.' | sort # Test that either all file types are unknown or all are correct -if _supports_filetype $testdir; then +if _supports_filetype $SCRATCH_MNT; then # print real file types src/t_dir_type $testdir | grep -vF '.' | sort else