diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2004-05-31 04:49:40 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2004-05-31 04:49:40 +0000 |
commit | f1d547a98953ea68dfe9ce0d9bba420e799dbf8a (patch) | |
tree | 34e2f9944a4eb822708c673256e576d9aa8a0336 /rdiff-backup/testing/roottest.py | |
parent | 7c00981b9df75386f7473d8d7960829a3894d99e (diff) | |
download | rdiff-backup-f1d547a98953ea68dfe9ce0d9bba420e799dbf8a.tar.gz |
Made half root permission test more stringent
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@535 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/roottest.py')
-rw-r--r-- | rdiff-backup/testing/roottest.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rdiff-backup/testing/roottest.py b/rdiff-backup/testing/roottest.py index e89a48e..8b86713 100644 --- a/rdiff-backup/testing/roottest.py +++ b/rdiff-backup/testing/roottest.py @@ -79,6 +79,21 @@ class HalfRoot(unittest.TestCase): rp2_3_3 = rp2_3.append('file2') rp2_3_3.touch() rp2_3.chmod(0) + # The rp_2_4 below test for a perm error, also tested in + # regressiontest.py testConfig1 + rp2_4 = rp2.append('test2') + rp2_4.mkdir() + rp2_4_1 = rp2_4.append('1-dir') + rp2_4_1.mkdir() + reg2_4_1_1 = rp2_4_1.append('reg') + reg2_4_1_1.touch() + reg2_4_1_1.chmod(0) + rp2_4_1.chmod(0) + reg2_4_2 = rp2_4.append('2-reg') + reg2_4_2.touch() + reg2_4_2.chmod(0) + rp2_4.chmod(0) + return rp1, rp2 def cause_regress(self, rp): |