tests: fix preparing multi-part disk volume

Storing encrypted filename into f_name shadowed unencrypted source file
name.
This commit is contained in:
Marek Marczykowski-Górecki 2021-01-05 04:23:22 +01:00
parent 93608658a9
commit af13c198be
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1203,9 +1203,9 @@ class TC_10_BackupCompatibility(qubesadmin.tests.backup.BackupTestCase):
part): part):
continue continue
part_with_dir = os.path.join(subdir, part) part_with_dir = os.path.join(subdir, part)
f_name = self.scrypt_encrypt(part_with_dir, f_name_enc = self.scrypt_encrypt(part_with_dir,
basedir=self.fullpath('stage1')) basedir=self.fullpath('stage1'))
self.append_backup_stream(f_name, stream, self.append_backup_stream(f_name_enc, stream,
basedir=self.fullpath("stage1")) basedir=self.fullpath("stage1"))
def create_v3_backup(self, encrypted=True, compressed=True): def create_v3_backup(self, encrypted=True, compressed=True):