]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: rsync test: exclude /usr/local
authorSage Weil <sage@inktank.com>
Sun, 12 May 2013 00:36:13 +0000 (17:36 -0700)
committerSage Weil <sage@inktank.com>
Sun, 12 May 2013 00:36:13 +0000 (17:36 -0700)
Some plana have non-world-readable crap in /usr/local/samba.  Avoid
/usr/local entirely for that and any similar landmines.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/misc/multiple_rsync.sh

index 945eb8186c89117e8fa32ab19425125e08ba4fe1..707a4b2341aa8a29207b18560f231baf58573eb8 100755 (executable)
@@ -1,13 +1,13 @@
 #!/bin/sh -ex
 
-rsync -av /usr/ usr.1
-rsync -av /usr/ usr.2
+rsync -av --exclude local/ /usr/ usr.1
+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 /usr/ usr.1 | tee a
+rsync -auv --exclude local/ /usr/ usr.1 | tee a
 wc -l a | grep 4
-rsync -auv /usr/ usr.2 | tee a
+rsync -auv --exclude local/ /usr/ usr.2 | tee a
 wc -l a | grep 4
 
 echo OK
\ No newline at end of file