generic/{159,160}: require chattr instead of lsattr

The tests _require_test_lsattr, but don't actually use lsattr. They
use chattr +i/-i, so require the appropriate command.

_require_test_lsattr checks the FS_IOC_GETFLAGS ioctl on a directory
and that is not supported in overlayfs. _require_chattr checks the
ioctl on a file, which is supported in overlayfs, so this change
makes the tests run and pass on overlayfs.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Amir Goldstein
2018-05-06 09:36:08 +03:00
committed by Eryu Guan
parent c29a70330f
commit b3c907888d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ _cleanup()
# real QA test starts here
_supported_os Linux
_require_test_lsattr
_require_chattr i
_require_test_reflink
rm -f $seqres.full
+1 -1
View File
@@ -43,7 +43,7 @@ _cleanup()
# real QA test starts here
_supported_os Linux
_require_test_lsattr
_require_chattr i
_require_test_dedupe
rm -f $seqres.full