We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d2f27 commit bd37658Copy full SHA for bd37658
testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py
@@ -43,7 +43,10 @@ class FSTestBackupDir(TestBackupDir):
43
""" Backup directory. Usually created by running pg_probackup init -B <path>"""
44
45
def __init__(self, *, rel_path, backup):
46
- self.path = os.path.join(init_params.tmp_path, rel_path, backup)
+ backup_prefix = os.environ.get('PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX')
47
+ if backup_prefix and not os.path.isabs(backup_prefix):
48
+ raise Exception(f"PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX must be an absolute path, current value: {backup_prefix}")
49
+ self.path = os.path.join(backup_prefix or init_params.tmp_path, rel_path, backup)
50
self.pb_args = ('-B', self.path)
51
52
def list_instance_backups(self, instance):
0 commit comments