diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-07-23 09:04:09 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-07-23 09:04:09 +0000 |
commit | 056090d96844b974f4a4a68c4dee0bc86b969f70 (patch) | |
tree | e9c7212d4de660bb56aab5bcc4f4b4422579449a /rdiff-backup/testing/finaltest.py | |
parent | c7637dd7a8d02f1edec09b165d857986b7297b17 (diff) | |
download | rdiff-backup-056090d96844b974f4a4a68c4dee0bc86b969f70.tar.gz |
Fix restore from 0.11.x
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-12@361 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/finaltest.py')
-rw-r--r-- | rdiff-backup/testing/finaltest.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rdiff-backup/testing/finaltest.py b/rdiff-backup/testing/finaltest.py index 9837437..c45bd62 100644 --- a/rdiff-backup/testing/finaltest.py +++ b/rdiff-backup/testing/finaltest.py @@ -290,6 +290,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 FinalSelection(PathSetter): """Test selection options""" |