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

tests: minor fixes, new tests for ptrack

This commit is contained in:
Grigory Smolkin
2018-01-17 20:51:43 +03:00
parent ecd6d1187d
commit d6a2d36403
6 changed files with 494 additions and 206 deletions

View File

@ -858,7 +858,7 @@ class ProbackupTest(object):
'postmaster.pid', 'postmaster.opts',
'pg_internal.init', 'postgresql.auto.conf',
'backup_label', 'tablespace_map', 'recovery.conf',
'ptrack_control', 'ptrack_init'
'ptrack_control', 'ptrack_init', 'pg_control'
]
suffixes_to_ignore = (
'_ptrack'
@ -1119,7 +1119,10 @@ class GDBobj(ProbackupTest):
continue
if line.startswith('*stopped,reason="breakpoint-hit"'):
continue
if line.startswith('*stopped,reason="exited-normally"'):
if (
line.startswith('*stopped,reason="exited-normally"') or
line == '*stopped\n'
):
return
raise GdbException(
'Failed to continue execution until exit.\n'
@ -1164,11 +1167,10 @@ class GDBobj(ProbackupTest):
self.proc.stdin.flush()
while True:
# sleep(1)
line = self.proc.stdout.readline()
output += [line]
if self.verbose:
print(line)
print(repr(line))
if line == '^done\n' or line.startswith('*stopped'):
break
if running and line.startswith('*running'):