From: John Spray Date: Thu, 11 Jun 2015 10:11:44 +0000 (+0100) Subject: qa: use "sudo cp" in multiple_rsync.sh X-Git-Tag: v9.0.3~201^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4930%2Fhead;p=ceph.git qa: use "sudo cp" in multiple_rsync.sh VirtualBox has some files with weird permissions in its /usr/lib, which was tripping up this usually-safe operation when run as an unprivileged user. Fixes: #11959 Signed-off-by: John Spray --- diff --git a/qa/workunits/fs/misc/multiple_rsync.sh b/qa/workunits/fs/misc/multiple_rsync.sh index e93e2f4fdfd7..36c23cb3f11e 100755 --- a/qa/workunits/fs/misc/multiple_rsync.sh +++ b/qa/workunits/fs/misc/multiple_rsync.sh @@ -4,7 +4,7 @@ # Populate with some arbitrary files from the local system. Take # a copy to protect against false fails from system updates during test. export PAYLOAD=/tmp/multiple_rsync_payload.$$ -cp -r /usr/lib/ $PAYLOAD +sudo cp -r /usr/lib/ $PAYLOAD set -e