Skip to content

Commit 2193cd7

Browse files
author
a.kozhemyakin
committed
clear pgdata and stop node after tests
1 parent ce77d8e commit 2193cd7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,17 +1521,14 @@ def clean_all(self):
15211521

15221522
def del_test_dir(self, module_name, fname, nodes=[]):
15231523
""" Del testdir and optimistically try to del module dir"""
1524-
try:
1525-
self.clean_all()
1526-
except Exception as e:
1527-
raise e
1524+
1525+
self.clean_all()
15281526

15291527
shutil.rmtree(
15301528
os.path.join(
15311529
self.tmp_path,
15321530
module_name,
1533-
fname,
1534-
"backup"
1531+
fname
15351532
),
15361533
ignore_errors=True
15371534
)

0 commit comments

Comments
 (0)