We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents7a5a56d +003d334 commit72f42f8Copy full SHA for 72f42f8
testgres/node.py
@@ -875,15 +875,13 @@ def free_port(self):
875
self._should_free_port=False
876
release_port(self.port)
877
878
-defcleanup(self,max_attempts=3,full_clean=testgres_config.node_cleanup_full):
+defcleanup(self,max_attempts=3):
879
"""
880
Stop node if needed and remove its data/logs directory.
881
NOTE: take a look at TestgresConfig.node_cleanup_full.
882
883
Args:
884
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
887
888
Returns:
889
This instance of :class:`.PostgresNode`.
@@ -892,7 +890,7 @@ def cleanup(self, max_attempts=3, full_clean=testgres_config.node_cleanup_full):
892
890
self._try_shutdown(max_attempts)
893
891
894
# choose directory to be removed
895
-iffull_clean:
+iftestgres_config.node_cleanup_full:
896
rm_dir=self.base_dir# everything
897
else:
898
rm_dir=self.data_dir# just data, save logs