File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
testgres/plugins/pg_probackup2/pg_probackup2/storage Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ class FSTestBackupDir(TestBackupDir):
43
43
""" Backup directory. Usually created by running pg_probackup init -B <path>"""
44
44
45
45
def __init__ (self , * , rel_path , backup ):
46
- self .path = os .path .join (init_params .tmp_path , rel_path , backup )
46
+ 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 )
47
50
self .pb_args = ('-B' , self .path )
48
51
49
52
def list_instance_backups (self , instance ):
You can’t perform that action at this time.
0 commit comments