summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/fixtures/replicaset.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/fixtures/replicaset.py')
-rw-r--r--buildscripts/resmokelib/testing/fixtures/replicaset.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/replicaset.py b/buildscripts/resmokelib/testing/fixtures/replicaset.py
index 8c93ada0b24..7f4851128a2 100644
--- a/buildscripts/resmokelib/testing/fixtures/replicaset.py
+++ b/buildscripts/resmokelib/testing/fixtures/replicaset.py
@@ -400,7 +400,7 @@ class ReplicaSetFixture(interface.ReplFixture): # pylint: disable=too-many-inst
for node in self.nodes:
node.mongo_client().admin.command(cmd)
- def _do_teardown(self):
+ def _do_teardown(self, kill=False):
self.logger.info("Stopping all members of the replica set...")
running_at_start = self.is_running()
@@ -411,11 +411,11 @@ class ReplicaSetFixture(interface.ReplFixture): # pylint: disable=too-many-inst
teardown_handler = interface.FixtureTeardownHandler(self.logger)
if self.initial_sync_node:
- teardown_handler.teardown(self.initial_sync_node, "initial sync node")
+ teardown_handler.teardown(self.initial_sync_node, "initial sync node", kill=kill)
# Terminate the secondaries first to reduce noise in the logs.
for node in reversed(self.nodes):
- teardown_handler.teardown(node, "replica set member on port %d" % node.port)
+ teardown_handler.teardown(node, "replica set member on port %d" % node.port, kill=kill)
if teardown_handler.was_successful():
self.logger.info("Successfully stopped all members of the replica set.")