Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit003d334

Browse files
committed
Revert "PBCKP-377 optionaly keep test logs"
This reverts commitb3777b2.
1 parent7a5a56d commit003d334

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-
defcleanup(self,max_attempts=3,full_clean=testgres_config.node_cleanup_full):
878+
defcleanup(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-
iffull_clean:
893+
iftestgres_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)

[8]ページ先頭

©2009-2025 Movatter.jp