mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-40602 burn_in_tests should call resmoke with python3
This commit is contained in:
parent
943e0fbfd8
commit
e0d816c3c0
@ -440,7 +440,7 @@ def get_resmoke_repeat_options(options):
|
||||
def _set_resmoke_cmd(options, args):
|
||||
"""Build the resmoke command, if a resmoke.py command wasn't passed in."""
|
||||
|
||||
new_args = copy.deepcopy(args) if args else ["python", "buildscripts/resmoke.py"]
|
||||
new_args = copy.deepcopy(args) if args else [sys.executable, "buildscripts/resmoke.py"]
|
||||
new_args += get_resmoke_repeat_options(options).split()
|
||||
|
||||
return new_args
|
||||
|
@ -4,6 +4,7 @@ from __future__ import absolute_import
|
||||
|
||||
import collections
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import unittest
|
||||
|
||||
@ -424,7 +425,7 @@ class TestSetResmokeArgs(unittest.TestCase):
|
||||
class TestSetResmokeCmd(unittest.TestCase):
|
||||
def test__set_resmoke_cmd_no_opts_no_args(self):
|
||||
with patch(BURN_IN + ".get_resmoke_repeat_options", return_value=""):
|
||||
self.assertListEqual(["python", "buildscripts/resmoke.py"],
|
||||
self.assertListEqual([sys.executable, "buildscripts/resmoke.py"],
|
||||
burn_in._set_resmoke_cmd(None, None))
|
||||
|
||||
def test__set_resmoke_cmd_no_opts(self):
|
||||
|
Loading…
Reference in New Issue
Block a user