summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/restoretest.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-08-18 17:43:34 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-08-18 17:43:34 +0000
commit3a5a6f654c073308fa4131609b37be88303f2f10 (patch)
tree1080bc19338d700f39bc1026cb5afbdf8134b41c /rdiff-backup/testing/restoretest.py
parent138291d78ab8fbf63f3a5a299afcc186641e45ba (diff)
downloadrdiff-backup-3a5a6f654c073308fa4131609b37be88303f2f10.tar.gz
Added tests to find the remote destination restore and no increment restore bugs.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@185 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/restoretest.py')
-rw-r--r--rdiff-backup/testing/restoretest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rdiff-backup/testing/restoretest.py b/rdiff-backup/testing/restoretest.py
index a5d7f12..922ca91 100644
--- a/rdiff-backup/testing/restoretest.py
+++ b/rdiff-backup/testing/restoretest.py
@@ -117,4 +117,11 @@ class RestoreTest(unittest.TestCase):
self.assertRaises(OSError, os.lstat, "testfiles/output/tmp")
self.assertRaises(OSError, os.lstat, "testfiles/output/rdiff-backup")
+ def testRestoreNoincs(self):
+ """Test restoring a directory with no increments, just mirror"""
+ Myrm("testfiles/output")
+ InternalRestore(1, 1, 'testfiles/restoretest5/regular_file', 'testfiles/output',
+ 10000)
+ assert os.lstat("testfiles/output")
+
if __name__ == "__main__": unittest.main()