summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/patch_builds/task_generation.py1
-rw-r--r--buildscripts/tests/patch_builds/test_task_generation.py8
2 files changed, 5 insertions, 4 deletions
diff --git a/buildscripts/patch_builds/task_generation.py b/buildscripts/patch_builds/task_generation.py
index e1d9a747bf7..b1d86d424a6 100644
--- a/buildscripts/patch_builds/task_generation.py
+++ b/buildscripts/patch_builds/task_generation.py
@@ -38,6 +38,7 @@ def resmoke_commands(run_tests_fn_name: str, run_tests_vars: Dict[str, Any],
"""
commands = [
timeout_info.cmd,
+ FunctionCall("git get project no modules") if require_multiversion else None,
FunctionCall("do setup"),
FunctionCall("configure evergreen api credentials") if require_multiversion else None,
FunctionCall("do multiversion setup") if require_multiversion else None,
diff --git a/buildscripts/tests/patch_builds/test_task_generation.py b/buildscripts/tests/patch_builds/test_task_generation.py
index 11e12f7cb2e..abd53d9b588 100644
--- a/buildscripts/tests/patch_builds/test_task_generation.py
+++ b/buildscripts/tests/patch_builds/test_task_generation.py
@@ -23,10 +23,10 @@ class TestResmokeCommand(unittest.TestCase):
timeout_info = under_test.TimeoutInfo.default_timeout()
commands = under_test.resmoke_commands(run_tests, test_vars, timeout_info,
- require_multiversion="multiversion")
+ require_multiversion=True)
# 4 expected command = 1 for setup + 1 for running tests + 2 for multiversion setup.
- self.assertEqual(4, len(commands))
+ self.assertEqual(5, len(commands))
def test_with_timeout(self):
run_tests = "run tests"
@@ -44,11 +44,11 @@ class TestResmokeCommand(unittest.TestCase):
timeout_info = under_test.TimeoutInfo.overridden(timeout=5)
commands = under_test.resmoke_commands(run_tests, test_vars, timeout_info,
- require_multiversion="multiversion")
+ require_multiversion=True)
# 5 expected command = 1 for setup + 1 for running tests + 2 for multiversion setup +
# 1 for timeout.
- self.assertEqual(5, len(commands))
+ self.assertEqual(6, len(commands))
class TestTimeoutInfo(unittest.TestCase):