From e0d816c3c090d626255aeef39bfd0b2e117b23c0 Mon Sep 17 00:00:00 2001 From: Mathew Robinson Date: Thu, 11 Apr 2019 18:10:35 -0400 Subject: [PATCH] SERVER-40602 burn_in_tests should call resmoke with python3 --- buildscripts/burn_in_tests.py | 2 +- buildscripts/tests/test_burn_in_tests.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/buildscripts/burn_in_tests.py b/buildscripts/burn_in_tests.py index 6f3a8122574..221769ce993 100644 --- a/buildscripts/burn_in_tests.py +++ b/buildscripts/burn_in_tests.py @@ -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 diff --git a/buildscripts/tests/test_burn_in_tests.py b/buildscripts/tests/test_burn_in_tests.py index 95f4322f76f..d67154b0ee6 100644 --- a/buildscripts/tests/test_burn_in_tests.py +++ b/buildscripts/tests/test_burn_in_tests.py @@ -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):