From f391d8e920a837c89d2f6716bedc4d23a6c5c694 Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Thu, 1 Aug 2013 16:25:45 +0200 Subject: [PATCH] deltatar: limit restore from index tests to uncompressed or concat compressed modes --- deltatar/deltatar.py | 2 +- testing/test_deltatar.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletions(-) 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: -- 1.7.1