mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-08 13:44:32 +02:00
fix for test test_pgpro434_4 (not zero code exit)
This commit is contained in:
parent
86b71f934d
commit
fb5debda8a
@ -1528,23 +1528,20 @@ class ProbackupTest(object):
|
|||||||
try:
|
try:
|
||||||
if node.status() == 0:
|
if node.status() == 0:
|
||||||
node.stop()
|
node.stop()
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
print("Error stop node ", e)
|
||||||
if node in self.nodes:
|
raise
|
||||||
self.nodes.remove(node)
|
finally:
|
||||||
|
if node in self.nodes:
|
||||||
|
self.nodes.remove(node)
|
||||||
|
|
||||||
shutil.rmtree(
|
shutil.rmtree(
|
||||||
os.path.join(
|
os.path.join(
|
||||||
self.tmp_path,
|
self.tmp_path,
|
||||||
module_name,
|
module_name
|
||||||
fname
|
|
||||||
),
|
),
|
||||||
ignore_errors=True
|
ignore_errors=True
|
||||||
)
|
)
|
||||||
try:
|
|
||||||
os.rmdir(os.path.join(self.tmp_path, module_name))
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def pgdata_content(self, pgdata, ignore_ptrack=True, exclude_dirs=None):
|
def pgdata_content(self, pgdata, ignore_ptrack=True, exclude_dirs=None):
|
||||||
""" return dict with directory content. "
|
""" return dict with directory content. "
|
||||||
|
Loading…
Reference in New Issue
Block a user