implement volume handling for rescue mode
[python-delta-tar] / testing / test_recover.py
index a769d91..f2147dd 100644 (file)
@@ -545,7 +545,12 @@ class GenIndexTest (DefectiveTest):
             (source_path=self.src_path, backup_path=bak_path,
              max_volume_size=1)
 
-        psidx = tarfile.gen_rescue_index (backup_full, mode, password=self.PASSWORD)
+        def gen_volume_name (nvol):
+            return os.path.join (bak_path, vname (backup_full, True, nvol))
+
+        psidx = tarfile.gen_rescue_index (gen_volume_name,
+                                          mode,
+                                          password=self.PASSWORD)
 
         assert len (psidx) == len (self.hash)