aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-05-06 09:36:08 +0300
committerEryu Guan <guaneryu@gmail.com>2018-05-11 18:40:04 +0800
commitb3c907888d5600fbd5b68713b178bf2cec05175e (patch)
treee72f317c372c8fe067650cce3619276b44254d4b
parentc29a70330fdf4f3ce4e7ba3a28e05fc45cf1a96b (diff)
downloadxfstests-dev-b3c907888d5600fbd5b68713b178bf2cec05175e.tar.gz
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>
-rwxr-xr-xtests/generic/1592
-rwxr-xr-xtests/generic/1602
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/generic/159 b/tests/generic/159
index 7e52d5cb06..f517b5510a 100755
--- a/tests/generic/159
+++ b/tests/generic/159
@@ -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
diff --git a/tests/generic/160 b/tests/generic/160
index 409b15ec41..cd1044d13d 100755
--- a/tests/generic/160
+++ b/tests/generic/160
@@ -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