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

Commitb3777b2

Browse files
author
v.shepard
committed
PBCKP-377 optionaly keep test logs
1 parentafa08aa commitb3777b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎testgres/node.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,13 +801,15 @@ def free_port(self):
801801
self._should_free_port=False
802802
release_port(self.port)
803803

804-
defcleanup(self,max_attempts=3):
804+
defcleanup(self,max_attempts=3,full_clean=testgres_config.node_cleanup_full):
805805
"""
806806
Stop node if needed and remove its data/logs directory.
807807
NOTE: take a look at TestgresConfig.node_cleanup_full.
808808
809809
Args:
810810
max_attempts: how many times should we try to stop()?
811+
full_clean: True - clean all node data
812+
False - clean only data dir, save logs
811813
812814
Returns:
813815
This instance of :class:`.PostgresNode`.
@@ -816,7 +818,7 @@ def cleanup(self, max_attempts=3):
816818
self._try_shutdown(max_attempts)
817819

818820
# choose directory to be removed
819-
iftestgres_config.node_cleanup_full:
821+
iffull_clean:
820822
rm_dir=self.base_dir# everything
821823
else:
822824
rm_dir=self.data_dir# just data, save logs

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp