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:31:10 +03:00
parent dfa6831fc2
commit a4917beacc
2 changed files with 2 additions and 8 deletions

View File

@ -9,11 +9,6 @@ import hashlib
import re
import pwd
try:
from testgres import configure_testgres
except:
pass
idx_ptrack = {
't_heap': {
'type': 'heap'
@ -134,7 +129,7 @@ class ProbackupTest(object):
self.paranoia = True
try:
configure_testgres(cache_initdb=False, cache_pg_config=False)
testgres.configure_testgres(cache_initdb=False, cache_pg_config=False)
except:
pass
@ -169,6 +164,7 @@ class ProbackupTest(object):
shutil.rmtree(real_base_dir, ignore_errors=True)
node = testgres.get_new_node('test', base_dir=real_base_dir)
node.should_rm_base_dir = True
node.init(initdb_params=initdb_params, allow_streaming=set_replication)
# Sane default parameters, not a shit with fsync = off from testgres
@ -195,7 +191,6 @@ class ProbackupTest(object):
except:
pass
node.should_rm_base_dir = True
return node
def create_tblspace_in_node(self, node, tblspc_name, cfs=False):

View File

@ -21,7 +21,6 @@ class RestoreTest(ProbackupTest, unittest.TestCase):
pg_options={'wal_level': 'replica'}
)
print(node.should_rm_dirs)
node.should_rm_dirs = True
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)