From f1d547a98953ea68dfe9ce0d9bba420e799dbf8a Mon Sep 17 00:00:00 2001 From: bescoto Date: Mon, 31 May 2004 04:49:40 +0000 Subject: 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 --- rdiff-backup/testing/roottest.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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): -- cgit v1.2.1