summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-07-23 09:00:45 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-07-23 09:00:45 +0000
commitda7569aff85b76bce315685df1c9185112db76a5 (patch)
treea093a434dc3421f98bb67b5fe977085335e23598 /rdiff-backup/testing
parentf6796406cfb923b377fbd6f7b2400578b3357336 (diff)
downloadrdiff-backup-da7569aff85b76bce315685df1c9185112db76a5.tar.gz
Fix for restore without mirror_metadata
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@360 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing')
-rw-r--r--rdiff-backup/testing/finaltest.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/rdiff-backup/testing/finaltest.py b/rdiff-backup/testing/finaltest.py
index aa1239b..593570f 100644
--- a/rdiff-backup/testing/finaltest.py
+++ b/rdiff-backup/testing/finaltest.py
@@ -295,6 +295,19 @@ class Final(PathSetter):
popen_fp.close()
assert wc_output.split() == ["0", "0", "0"], wc_output
+ def testLegacy(self):
+ """Test restoring directory with no mirror_metadata file"""
+ self.delete_tmpdirs()
+ self.set_connections(None, None, None, None)
+ self.exec_rb(10000, 'testfiles/various_file_types',
+ 'testfiles/output')
+ self.exec_rb(20000, 'testfiles/empty', 'testfiles/output')
+ assert not os.system(MiscDir + '/myrm testfiles/output/rdiff-backup-data/mirror_metadata*')
+ self.exec_rb_extra_args(None, '-r0', 'testfiles/output',
+ 'testfiles/restoretarget1')
+ assert CompareRecursive(Local.vftrp, Local.rpout1,
+ compare_hardlinks = 0)
+
class FinalMisc(PathSetter):
"""Test miscellaneous operations like list-increments, etc.