提交 8f3793cb 编写于 作者: L luluyalula 提交者: Gitee

update testcases/smoke-testing/oe_test_acl_001/oe_test_acl_001.sh.

62行应该测的是cal03,在文件夹/tmp/acl01的权限取消后,子文件夹的权限不受影响

将两个无逻辑关系的清除语句分开执行
上级 d3a272a1
......@@ -59,12 +59,12 @@ function run_test() {
setfacl -b /tmp/acl01
pre06=$(getfacl -p /tmp/acl01|grep "user"|awk -F : '{print $2}'|grep -w "testuser")
pre07=$(getfacl -p /tmp/acl01/acl02|grep "user"|awk -F : '{print $2}'|grep -w "testuser")
pre08=$(getfacl -p /tmp/acl01/acl08|grep "user"|awk -F : '{print $2}'|grep -w "testuser")
pre08=$(getfacl -p /tmp/acl01/acl03|grep "user"|awk -F : '{print $2}'|grep -w "testuser")
[ -z "$pre06" ]
CHECK_RESULT $?
[ -z "$pre07" ]
CHECK_RESULT $?
[ -z "$pre08" ]
[ -n "$pre08" ]
CHECK_RESULT $?
LOG_INFO "Finish test!"
......@@ -72,7 +72,8 @@ function run_test() {
function post_test() {
LOG_INFO "start environment cleanup."
rm -rf /tmp/acl01 && userdel testuser
rm -rf /tmp/acl01
userdel testuser
LOG_INFO "Finish environment cleanup!"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册