1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-05-28 00:47:33 +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 re
import pwd import pwd
try:
from testgres import configure_testgres
except:
pass
idx_ptrack = { idx_ptrack = {
't_heap': { 't_heap': {
'type': 'heap' 'type': 'heap'
@ -134,7 +129,7 @@ class ProbackupTest(object):
self.paranoia = True self.paranoia = True
try: try:
configure_testgres(cache_initdb=False, cache_pg_config=False) testgres.configure_testgres(cache_initdb=False, cache_pg_config=False)
except: except:
pass pass
@ -169,6 +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.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
@ -195,7 +191,6 @@ class ProbackupTest(object):
except: except:
pass pass
node.should_rm_base_dir = True
return node return node
def create_tblspace_in_node(self, node, tblspc_name, cfs=False): 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'} pg_options={'wal_level': 'replica'}
) )
print(node.should_rm_dirs) print(node.should_rm_dirs)
node.should_rm_dirs = True
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)