Skip to content

Remove init param #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py
Original file line number Diff line number Diff line change
@@ -148,21 +148,24 @@ def __init__(self):
[self.probackup_path, "--version"],
stderr=subprocess.STDOUT,
).decode('utf-8')
self.probackup_version = re.search(r"\d+\.\d+\.\d+",
probackup_version_output
).group(0)
compressions = re.search(r"\(compressions: ([^)]*)\)",
probackup_version_output).group(1)
self.probackup_compressions = {s.strip() for s in compressions.split(',')}
match = re.search(r"\d+\.\d+\.\d+",
probackup_version_output)
self.probackup_version = match.group(0) if match else None
match = re.search(r"\(compressions: ([^)]*)\)", probackup_version_output)
compressions = match.group(1) if match else None
if compressions:
self.probackup_compressions = {s.strip() for s in compressions.split(',')}
else:
self.probackup_compressions = []

if self.probackup_old_path:
old_probackup_version_output = subprocess.check_output(
[self.probackup_old_path, "--version"],
stderr=subprocess.STDOUT,
).decode('utf-8')
self.old_probackup_version = re.search(r"\d+\.\d+\.\d+",
old_probackup_version_output
).group(0)
match = re.search(r"\d+\.\d+\.\d+",
old_probackup_version_output)
self.old_probackup_version = match.group(0) if match else None

self.remote = test_env.get('PGPROBACKUP_SSH_REMOTE', None) == 'ON'
self.ptrack = test_env.get('PG_PROBACKUP_PTRACK', None) == 'ON' and self.pg_config_version >= 110000
@@ -202,7 +205,6 @@ def __init__(self):
self.delete_logs = delete_logs

# s3 params
self.s3_config_file = test_env.get('PG_PROBACKUP_S3_CONFIG_FILE')
self.s3_type = test_env.get('PG_PROBACKUP_S3_TEST')

def test_env(self):