generic/{159,160}: require chattr instead of lsattr
authorAmir Goldstein <amir73il@gmail.com>
Sun, 6 May 2018 06:36:08 +0000 (09:36 +0300)
committerEryu Guan <guaneryu@gmail.com>
Fri, 11 May 2018 10:40:04 +0000 (18:40 +0800)
commitb3c907888d5600fbd5b68713b178bf2cec05175e
treee72f317c372c8fe067650cce3619276b44254d4b
parentc29a70330fdf4f3ce4e7ba3a28e05fc45cf1a96b
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>
tests/generic/159
tests/generic/160