From: Eduardo Robles Elvira Date: Thu, 1 Aug 2013 14:25:45 +0000 (+0200) Subject: deltatar: limit restore from index tests to uncompressed or concat compressed modes X-Git-Tag: v2.2~129 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=f391d8e920a837c89d2f6716bedc4d23a6c5c694;p=python-delta-tar deltatar: limit restore from index tests to uncompressed or concat compressed modes --- diff --git a/deltatar/deltatar.py b/deltatar/deltatar.py index ef7ef98..075fc6b 100644 --- a/deltatar/deltatar.py +++ b/deltatar/deltatar.py @@ -575,7 +575,7 @@ class DeltaTar(object): password=self.password, new_volume_handler=new_volume_handler) os.chdir(target_path) - # TODO: filtering here + # TODO: fillo ha tering here tarobj.extractall() os.chdir(cwd) tarobj.close() diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 8d4c813..0d5abd9 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -405,6 +405,10 @@ class DeltaTarTest(BaseTest): ''' Creates a backup, and then filter when doing the index based restore. ''' + # this test only works for uncompressed or concat compressed modes + if self.MODE.startswith(':') or self.MODE.startswith('|'): + return + deltatar = DeltaTar(mode=self.MODE, password=self.PASSWORD, logger=self.consoleLogger) @@ -437,6 +441,10 @@ class DeltaTarTest(BaseTest): Creates a backup, and then filter when doing the index based restore, using the filter function. ''' + # this test only works for uncompressed or concat compressed modes + if self.MODE.startswith(':') or self.MODE.startswith('|'): + return + visited_paths = [] def filter_func(visited_paths, path): if path not in visited_paths: