From 625f20ccd36a48e39c825ef149410d093e5c7819 Mon Sep 17 00:00:00 2001 From: sfalkon Date: Fri, 3 Nov 2017 13:38:14 +0300 Subject: [PATCH] fix ptrack --- tests/helpers/ptrack_helpers.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/helpers/ptrack_helpers.py b/tests/helpers/ptrack_helpers.py index a5094112..6a84cb76 100644 --- a/tests/helpers/ptrack_helpers.py +++ b/tests/helpers/ptrack_helpers.py @@ -133,7 +133,11 @@ class ProbackupTest(object): if self.test_env['PGPRO_PARANOIA_MODE'] == 'ON': self.paranoia = True - configure_testgres(cache_initdb=False, cache_pg_config=False) + try: + configure_testgres(cache_initdb=False, cache_pg_config=False) + except: + pass + self.helpers_path = os.path.dirname(os.path.realpath(__file__)) self.dir_path = os.path.abspath(os.path.join(self.helpers_path, os.pardir)) self.tmp_path = os.path.abspath(os.path.join(self.dir_path, 'tmp_dirs')) @@ -185,7 +189,10 @@ class ProbackupTest(object): # Allow replication in pg_hba.conf if set_replication: - node.set_replication_conf() + try: + node.set_replication_conf() + except: + pass node.append_conf("postgresql.auto.conf", "max_wal_senders = 10") return node