]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use sudo even more when rsyncing /usr 3520/head
authorGreg Farnum <gfarnum@redhat.com>
Fri, 7 Nov 2014 01:48:01 +0000 (17:48 -0800)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 28 Jan 2015 19:44:25 +0000 (11:44 -0800)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 3aa7797741f9cff06053a2f31550fe6929039692)

qa/workunits/misc/multiple_rsync.sh

index 61ee28317049532b6661ece79e5b0eacc0d2d1e3..4a1d0a183a656b99de696c5d9e4f25c97dcccd7e 100755 (executable)
@@ -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