From: Greg Farnum Date: Fri, 7 Nov 2014 01:59:22 +0000 (-0800) Subject: qa/workunits/fs/misc: combine sudo and echo effectively X-Git-Tag: v0.89~53 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abc995b6b4e0117b74c301abcb4faf4ea2ebef25;p=ceph.git qa/workunits/fs/misc: combine sudo and echo effectively Signed-off-by: Greg Farnum --- diff --git a/qa/workunits/fs/misc/acl.sh b/qa/workunits/fs/misc/acl.sh index 4186cf91ad66..a213300b7086 100755 --- a/qa/workunits/fs/misc/acl.sh +++ b/qa/workunits/fs/misc/acl.sh @@ -19,7 +19,7 @@ do # 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 + echo 3 | sudo tee /proc/sys/vm/drop_caches > /dev/null c2=`getfacl d1 | grep -c "nobody:rw"` rmdir d1 if [ $c1 -ne 2 ] || [ $c2 -ne 2 ]