summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-08-29 09:05:09 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-08-29 09:05:09 +0000
commit984a5877941dfc705b1054fb89f553e38c8dbf00 (patch)
tree93093c65bf94d282790da9e39cde115cc025cfaa /rdiff-backup/testing
parentfea49a087e331210a8604e1ca138c21dacda31f5 (diff)
downloadrdiff-backup-984a5877941dfc705b1054fb89f553e38c8dbf00.tar.gz
Fix for unreadable directories
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@410 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing')
-rw-r--r--rdiff-backup/testing/roottest.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/rdiff-backup/testing/roottest.py b/rdiff-backup/testing/roottest.py
index ab0c580..4c31a21 100644
--- a/rdiff-backup/testing/roottest.py
+++ b/rdiff-backup/testing/roottest.py
@@ -11,7 +11,7 @@ if you aren't me, check out the 'user' global variable.
Globals.set('change_source_perms', None)
Globals.counter = 0
-verbosity = 3
+verbosity = 6
log.Log.setverbosity(verbosity)
user = 'ben' # Non-root user to su to
assert os.getuid() == 0, "Run this test as root!"
@@ -46,6 +46,11 @@ class HalfRoot(unittest.TestCase):
rp1_2 = rp1.append('to be deleted')
rp1_2.write_string('aosetuhaosetnuhontu')
rp1_2.chmod(0)
+ rp1_3 = rp1.append('unreadable_dir')
+ rp1_3.mkdir()
+ rp1_3_1 = rp1_3.append('file inside')
+ rp1_3_1.write_string('blah')
+ rp1_3.chmod(0)
rp2 = rpath.RPath(Globals.local_connection, "testfiles/root_half2")
if rp2.lstat(): Myrm(rp2.path)
@@ -53,6 +58,9 @@ class HalfRoot(unittest.TestCase):
rp2_1 = rp2.append('foo')
rp2_1.write_string('goodbye')
rp2_1.chmod(0)
+ rp2_3 = rp2.append('unreadable_dir')
+ rp2_3.mkdir()
+ rp2_3.chmod(0)
return rp1, rp2
def test_backup(self):