Thanks to visit codestin.com Credit goes to github.com
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 52fc537 commit 7a341bfCopy full SHA for 7a341bf
testgres/plugins/pg_probackup2/pg_probackup2/storage/fs_backup.py
@@ -44,7 +44,7 @@ class FSTestBackupDir(TestBackupDir):
44
45
def __init__(self, *, rel_path, backup):
46
backup_prefix = os.environ.get('PG_PROBACKUP_TEST_BACKUP_DIR_PREFIX')
47
- if not os.path.isabs(backup_prefix):
+ 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)
0 commit comments