]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/fs/misc: combine sudo and echo effectively
authorGreg Farnum <gfarnum@redhat.com>
Fri, 7 Nov 2014 01:59:22 +0000 (17:59 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 10 Nov 2014 19:39:07 +0000 (11:39 -0800)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit abc995b6b4e0117b74c301abcb4faf4ea2ebef25)

qa/workunits/fs/misc/acl.sh

index 4186cf91ad66e5cbaa0ee78589fd77785f6e93ec..a213300b70866319b1debe8c7057abf598cccd3a 100755 (executable)
@@ -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 ]