[LTP] [PATCH] acl_test01: Add setfacl as an explicit dependency
Punit Agrawal
punit.agrawal@arm.com
Fri Jul 6 17:29:27 CEST 2018
acl_test01 calls setfacl during execution but does not explicitly
check for its presence during setup.
Add this dependency to correctly report the failure mode when setfacl
is not found.
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
testcases/kernel/fs/acls/acl_test01 | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01
index c91eb5686..14b62e895 100755
--- a/testcases/kernel/fs/acls/acl_test01
+++ b/testcases/kernel/fs/acls/acl_test01
@@ -64,6 +64,7 @@ fi
do_setup()
{
tst_require_root
+ tst_check_cmds setfacl
if ! ( test -d $TMP/tacl || mkdir -m 777 $TMP/tacl) ; then
tst_brkm TBROK "Failed to create $TMP/tacl directory."
--
2.17.1
More information about the ltp
mailing list