mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
qa/workunits/fs/misc: fix syntax error
Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
parent
da074f02cd
commit
fa539b9c3f
@ -12,15 +12,17 @@ if test $? != 0; then
|
||||
fi
|
||||
|
||||
set -e
|
||||
for (( i=0; i<100; i++))
|
||||
c=0
|
||||
while [ $c -lt 100 ]
|
||||
do
|
||||
c=`expr $c + 1`
|
||||
# inherited ACL from parent directory's default ACL
|
||||
mkdir d1
|
||||
c1=`getfacl d1 | grep -c "nobody:rw"`
|
||||
sudo echo 3 > /proc/sys/vm/drop_caches
|
||||
c2=`getfacl d1 | grep -c "nobody:rw"`
|
||||
rmdir d1
|
||||
if [[ $c1 -ne 2 || $c2 -ne 2 ]]
|
||||
if [ $c1 -ne 2 ] || [ $c2 -ne 2 ]
|
||||
then
|
||||
echo "ERROR: incorrect ACLs"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user