From: Greg Farnum Date: Fri, 7 Nov 2014 01:48:01 +0000 (-0800) Subject: qa: use sudo even more when rsyncing /usr X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=18a40ff2fc23c3e1dd217a096b30fdefaece58db;p=ceph.git qa: use sudo even more when rsyncing /usr Signed-off-by: Greg Farnum (cherry picked from commit 3aa7797741f9cff06053a2f31550fe6929039692) --- diff --git a/qa/workunits/misc/multiple_rsync.sh b/qa/workunits/misc/multiple_rsync.sh index 61ee2831704..4a1d0a183a6 100755 --- a/qa/workunits/misc/multiple_rsync.sh +++ b/qa/workunits/misc/multiple_rsync.sh @@ -1,11 +1,11 @@ #!/bin/sh -ex -rsync -av --exclude local/ /usr/ usr.1 -rsync -av --exclude local/ /usr/ usr.2 +sudo rsync -av --exclude local/ /usr/ usr.1 +sudo rsync -av --exclude local/ /usr/ usr.2 # this shouldn't transfer any additional files echo we should get 4 here if no additional files are transfered -rsync -auv --exclude local/ /usr/ usr.1 | tee /tmp/$$ +sudo rsync -auv --exclude local/ /usr/ usr.1 | tee /tmp/$$ hexdump -C /tmp/$$ wc -l /tmp/$$ | grep 4 sudo rsync -auv --exclude local/ /usr/ usr.2 | tee /tmp/$$ @@ -13,4 +13,4 @@ hexdump -C /tmp/$$ wc -l /tmp/$$ | grep 4 rm /tmp/$$ -echo OK \ No newline at end of file +echo OK