Skip to content

Commit 72f42f8

Browse files
authored
Merge pull request #79 from postgrespro/revert-full-clean
Revert "PBCKP-377 optionaly keep test logs"
2 parents 7a5a56d + 003d334 commit 72f42f8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: testgres/node.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -875,15 +875,13 @@ def free_port(self):
875875
self._should_free_port = False
876876
release_port(self.port)
877877

878-
def cleanup(self, max_attempts=3, full_clean=testgres_config.node_cleanup_full):
878+
def cleanup(self, max_attempts=3):
879879
"""
880880
Stop node if needed and remove its data/logs directory.
881881
NOTE: take a look at TestgresConfig.node_cleanup_full.
882882
883883
Args:
884884
max_attempts: how many times should we try to stop()?
885-
full_clean: True - clean all node data
886-
False - clean only data dir, save logs
887885
888886
Returns:
889887
This instance of :class:`.PostgresNode`.
@@ -892,7 +890,7 @@ def cleanup(self, max_attempts=3, full_clean=testgres_config.node_cleanup_full):
892890
self._try_shutdown(max_attempts)
893891

894892
# choose directory to be removed
895-
if full_clean:
893+
if testgres_config.node_cleanup_full:
896894
rm_dir = self.base_dir # everything
897895
else:
898896
rm_dir = self.data_dir # just data, save logs

0 commit comments

Comments
 (0)