Skip to content

Commit 003d334

Browse files
committed
Revert "PBCKP-377 optionaly keep test logs"
This reverts commit b3777b2.
1 parent 7a5a56d commit 003d334

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

testgres/node.py

Lines changed: 2 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy