Unit test: Skip multivolume split test for modes that don't support it.
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 3 Jul 2015 15:57:49 +0000 (17:57 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 3 Jul 2015 15:59:17 +0000 (17:59 +0200)
Actual code borrowed from test_restore_from_index().
Same code in test_restore_multivol_from_index() and a few others.

All unit tests running again.

testing/test_deltatar.py

index 3a46ccc..48ac776 100644 (file)
@@ -179,6 +179,11 @@ class DeltaTarTest(BaseTest):
         with big files bigger than the max volume size and
         restore it.
         '''
+
+        # 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)