summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-12-12 01:15:22 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2005-12-12 01:15:22 +0000
commita446d54bcefa21ac07d0db6b615034e945b95b44 (patch)
tree2adfafbcb43d245d8d44c284e5f00614ca49e5ea /rdiff-backup/testing
parentafbb4426aa4c746f8f641dc920773e94be3e179d (diff)
downloadrdiff-backup-a446d54bcefa21ac07d0db6b615034e945b95b44.tar.gz
false negative acl compare fix
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@702 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing')
-rw-r--r--rdiff-backup/testing/eas_aclstest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/rdiff-backup/testing/eas_aclstest.py b/rdiff-backup/testing/eas_aclstest.py
index 0fc3a37..09bfa75 100644
--- a/rdiff-backup/testing/eas_aclstest.py
+++ b/rdiff-backup/testing/eas_aclstest.py
@@ -496,6 +496,18 @@ other::---""")
else: assert 0, "Above should have exited with fatal error"
Globals.never_drop_acls = None
+ def test_nochange(self):
+ """Make sure files with ACLs not unnecessarily flagged changed"""
+ self.make_temp()
+ self.make_backup_dirs()
+ rdiff_backup(1, 1, self.acl_testdir1.path, tempdir.path,
+ current_time = 10000)
+ rdiff_backup(1, 1, self.acl_testdir1.path, tempdir.path,
+ current_time = 20000)
+ incdir = tempdir.append('rdiff-backup-data').append('increments')
+ assert incdir.isdir(), incdir
+ assert not incdir.listdir(), incdir.listdir()
+
class CombinedTest(unittest.TestCase):
"""Test backing up and restoring directories with both EAs and ACLs"""