summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2021-05-14 18:47:23 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-18 15:34:10 +0000
commit2f016243cb7f0e4de1a2d5cc92f5d51143df9a4e (patch)
treec97da28a51a42a2fbdb51c13b7530c2aae045ad5
parentfaefb37b303f11e68bee1b0eb08fef907a237fbe (diff)
downloadmongo-2f016243cb7f0e4de1a2d5cc92f5d51143df9a4e.tar.gz
SERVER-56967 Make a deepcopy of shell_options in the tenant migration passthrough suite
(cherry picked from commit 97bd3bc33d6bee92c5a780b525113b700e3b629a)
-rw-r--r--buildscripts/resmokelib/testing/hooks/tenant_migration.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/tenant_migration.py b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
index 285c9683fe6..08919557491 100644
--- a/buildscripts/resmokelib/testing/hooks/tenant_migration.py
+++ b/buildscripts/resmokelib/testing/hooks/tenant_migration.py
@@ -1,5 +1,6 @@
"""Test hook that runs tenant migrations continuously."""
+import copy
import random
import re
import threading
@@ -37,7 +38,7 @@ class ContinuousTenantMigration(interface.Hook): # pylint: disable=too-many-ins
if not isinstance(fixture, tenant_migration.TenantMigrationFixture):
raise ValueError("The ContinuousTenantMigration hook requires a TenantMigrationFixture")
self._tenant_migration_fixture = fixture
- self._shell_options = shell_options.copy()
+ self._shell_options = copy.deepcopy(shell_options)
self._tenant_migration_thread = None