Skip to content

Commit 1002f3c

Browse files
author
v.shepard
committed
PBCKP-405 add s3 option to run_pb if env var PROBACKUP_S3_TYPE_FULL_TEST set up
1 parent 764680e commit 1002f3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def is_enterprise():
101101
)
102102
return b'postgrespro.ru' in p.communicate()[0]
103103

104-
104+
105105
def is_nls_enabled():
106106
cmd = [os.environ['PG_CONFIG'], '--configure']
107107

@@ -536,7 +536,7 @@ def make_simple_node(
536536
node, {}, 'postgresql.conf', ['wal_keep_segments'])
537537

538538
return node
539-
539+
540540
def simple_bootstrap(self, node, role) -> None:
541541

542542
node.safe_psql(
@@ -935,6 +935,9 @@ def check_ptrack_clean(self, idx_dict, size):
935935
)
936936

937937
def run_pb(self, command, asynchronous=False, gdb=False, old_binary=False, return_id=True, env=None):
938+
s3_type = os.environ['PROBACKUP_S3_TYPE_FULL_TEST']
939+
if s3_type:
940+
command.append(f"s3={s3_type}")
938941
if not self.probackup_old_path and old_binary:
939942
print('PGPROBACKUPBIN_OLD is not set')
940943
exit(1)

0 commit comments

Comments
 (0)