1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-20 11:34:51 +02:00

fix ptrack

This commit is contained in:
sfalkon 2017-11-03 15:49:31 +03:00
parent a4917beacc
commit 2eea2dd433
2 changed files with 2 additions and 3 deletions

View File

@ -164,7 +164,7 @@ class ProbackupTest(object):
shutil.rmtree(real_base_dir, ignore_errors=True) shutil.rmtree(real_base_dir, ignore_errors=True)
node = testgres.get_new_node('test', base_dir=real_base_dir) node = testgres.get_new_node('test', base_dir=real_base_dir)
node.should_rm_base_dir = True node.should_rm_dirs = True
node.init(initdb_params=initdb_params, allow_streaming=set_replication) node.init(initdb_params=initdb_params, allow_streaming=set_replication)
# Sane default parameters, not a shit with fsync = off from testgres # Sane default parameters, not a shit with fsync = off from testgres

View File

@ -20,7 +20,7 @@ class RestoreTest(ProbackupTest, unittest.TestCase):
initdb_params=['--data-checksums'], initdb_params=['--data-checksums'],
pg_options={'wal_level': 'replica'} pg_options={'wal_level': 'replica'}
) )
print(node.should_rm_dirs)
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup') backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
self.init_pb(backup_dir) self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node) self.add_instance(backup_dir, 'node', node)
@ -35,7 +35,6 @@ class RestoreTest(ProbackupTest, unittest.TestCase):
backup_id = self.backup_node(backup_dir, 'node', node) backup_id = self.backup_node(backup_dir, 'node', node)
node.stop() node.stop()
print(node.should_rm_dirs)
node.cleanup() node.cleanup()
# 1 - Test recovery from latest # 1 - Test recovery from latest