1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-14 06:54:15 +02:00

Add tests for --start-time option on the one and few nodes

This commit is contained in:
d.lepikhova
2022-06-03 13:45:50 +05:00
parent c81c54be4c
commit 1b75b4ed62
2 changed files with 374 additions and 2 deletions

View File

@ -938,7 +938,7 @@ class ProbackupTest(object):
backup_type='full', datname=False, options=[],
asynchronous=False, gdb=False,
old_binary=False, return_id=True, no_remote=False,
env=None
env=None, startTime=None
):
if not node and not data_dir:
print('You must provide ether node or data_dir for backup')
@ -971,6 +971,9 @@ class ProbackupTest(object):
if not old_binary:
cmd_list += ['--no-sync']
if startTime:
cmd_list += ['--start-time', startTime]
return self.run_pb(cmd_list + options, asynchronous, gdb, old_binary, return_id, env=env)
def checkdb_node(