deltatar: limit restore from index tests to uncompressed or concat compressed modes
authorEduardo Robles Elvira <edulix@wadobo.com>
Thu, 1 Aug 2013 14:25:45 +0000 (16:25 +0200)
committerEduardo Robles Elvira <edulix@wadobo.com>
Thu, 1 Aug 2013 14:25:45 +0000 (16:25 +0200)
deltatar/deltatar.py
testing/test_deltatar.py

index ef7ef98..075fc6b 100644 (file)
@@ -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()
index 8d4c813..0d5abd9 100644 (file)
@@ -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: