mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-07 13:40:17 +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:
|
||||
if node.status() == 0:
|
||||
node.stop()
|
||||
except:
|
||||
pass
|
||||
if node in self.nodes:
|
||||
self.nodes.remove(node)
|
||||
except Exception as e:
|
||||
print("Error stop node ", e)
|
||||
raise
|
||||
finally:
|
||||
if node in self.nodes:
|
||||
self.nodes.remove(node)
|
||||
|
||||
shutil.rmtree(
|
||||
os.path.join(
|
||||
self.tmp_path,
|
||||
module_name,
|
||||
fname
|
||||
module_name
|
||||
),
|
||||
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):
|
||||
""" return dict with directory content. "
|
||||
|
Loading…
Reference in New Issue
Block a user