From af13c198be0780c4a14d42ed6f34d8ad5a31ab5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 5 Jan 2021 04:23:22 +0100 Subject: [PATCH] tests: fix preparing multi-part disk volume Storing encrypted filename into f_name shadowed unencrypted source file name. --- qubesadmin/tests/backup/backupcompatibility.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesadmin/tests/backup/backupcompatibility.py b/qubesadmin/tests/backup/backupcompatibility.py index 53b43a9..bf67954 100644 --- a/qubesadmin/tests/backup/backupcompatibility.py +++ b/qubesadmin/tests/backup/backupcompatibility.py @@ -1203,9 +1203,9 @@ class TC_10_BackupCompatibility(qubesadmin.tests.backup.BackupTestCase): part): continue 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')) - self.append_backup_stream(f_name, stream, + self.append_backup_stream(f_name_enc, stream, basedir=self.fullpath("stage1")) def create_v3_backup(self, encrypted=True, compressed=True):