diff --git a/tools_webrtc/mb/mb.py b/tools_webrtc/mb/mb.py index bed28e3b92..c7ede498d4 100755 --- a/tools_webrtc/mb/mb.py +++ b/tools_webrtc/mb/mb.py @@ -907,25 +907,28 @@ class MetaBuildWrapper(object): '../../.vpython', '../../testing/test_env.py', ] + vpython_exe = 'vpython' must_retry = False if test_type == 'script': cmdline += ['../../' + self.ToSrcRelPath(isolate_map[target]['script'])] elif is_android: - cmdline += ['../../build/android/test_wrapper/logdog_wrapper.py', + cmdline += [vpython_exe, + '../../build/android/test_wrapper/logdog_wrapper.py', '--target', target, '--logdog-bin-cmd', '../../bin/logdog_butler', '--logcat-output-file', '${ISOLATED_OUTDIR}/logcats', '--store-tombstones'] else: if test_type == 'raw': - cmdline.append('../../tools_webrtc/flags_compatibility.py') + cmdline += [vpython_exe, + '../../tools_webrtc/flags_compatibility.py'] extra_files.append('../../tools_webrtc/flags_compatibility.py') if isolate_map[target].get('use_webcam', False): - cmdline.append( - '../../tools_webrtc/ensure_webcam_is_running.py') + cmdline += [vpython_exe, + '../../tools_webrtc/ensure_webcam_is_running.py'] extra_files.append( '../../tools_webrtc/ensure_webcam_is_running.py') @@ -934,10 +937,10 @@ class MetaBuildWrapper(object): xvfb = use_x11 and test_type == 'windowed_test_launcher' if xvfb: - cmdline.append('../../testing/xvfb.py') + cmdline += [vpython_exe, '../../testing/xvfb.py'] extra_files.append('../../testing/xvfb.py') else: - cmdline.append('../../testing/test_env.py') + cmdline += [vpython_exe, '../../testing/test_env.py'] if test_type != 'raw': extra_files += [ diff --git a/tools_webrtc/mb/mb_unittest.py b/tools_webrtc/mb/mb_unittest.py index 2f0a61913d..8bb6b566de 100755 --- a/tools_webrtc/mb/mb_unittest.py +++ b/tools_webrtc/mb/mb_unittest.py @@ -333,6 +333,7 @@ class UnitTest(unittest.TestCase): self.assertEqual(files, ['../../.vpython', '../../testing/test_env.py', 'base_unittests']) self.assertEqual(command, [ + 'vpython', '../../build/android/test_wrapper/logdog_wrapper.py', '--target', 'base_unittests', '--logdog-bin-cmd', '../../bin/logdog_butler', @@ -367,6 +368,7 @@ class UnitTest(unittest.TestCase): self.assertEqual(files, ['../../.vpython', '../../testing/test_env.py', 'base_unittests']) self.assertEqual(command, [ + 'vpython', '../../build/android/test_wrapper/logdog_wrapper.py', '--target', 'base_unittests', '--logdog-bin-cmd', '../../bin/logdog_butler', @@ -408,6 +410,7 @@ class UnitTest(unittest.TestCase): 'base_unittests', ]) self.assertEqual(command, [ + 'vpython', '../../testing/test_env.py', '../../tools_webrtc/gtest-parallel-wrapper.py', '--output_dir=${ISOLATED_OUTDIR}/test_logs', @@ -489,7 +492,9 @@ class UnitTest(unittest.TestCase): 'base_unittests', ]) self.assertEqual(command, [ + 'vpython', '../../tools_webrtc/flags_compatibility.py', + 'vpython', '../../testing/test_env.py', './base_unittests', '--asan=0', @@ -531,6 +536,7 @@ class UnitTest(unittest.TestCase): 'base_unittests', ]) self.assertEqual(command, [ + 'vpython', '../../testing/test_env.py', '../../tools_webrtc/gtest-parallel-wrapper.py', '--output_dir=${ISOLATED_OUTDIR}/test_logs', @@ -582,6 +588,7 @@ class UnitTest(unittest.TestCase): 'some_resource_file', ]) self.assertEqual(command, [ + 'vpython', '../../testing/xvfb.py', '../../tools_webrtc/gtest-parallel-wrapper.py', '--output_dir=${ISOLATED_OUTDIR}/test_logs', @@ -634,6 +641,7 @@ class UnitTest(unittest.TestCase): 'unittests.exe', ]) self.assertEqual(command, [ + 'vpython', '../../testing/test_env.py', '../../tools_webrtc/gtest-parallel-wrapper.py', '--output_dir=${ISOLATED_OUTDIR}\\test_logs', @@ -681,6 +689,7 @@ class UnitTest(unittest.TestCase): 'base_unittests', ]) self.assertEqual(command, [ + 'vpython', '../../testing/test_env.py', '../../tools_webrtc/gtest-parallel-wrapper.py', '--output_dir=${ISOLATED_OUTDIR}/test_logs', @@ -732,7 +741,9 @@ class UnitTest(unittest.TestCase): 'some_resource_file', ]) self.assertEqual(command, [ + 'vpython', '../../tools_webrtc/ensure_webcam_is_running.py', + 'vpython', '../../testing/test_env.py', '../../tools_webrtc/gtest-parallel-wrapper.py', '--output_dir=${ISOLATED_OUTDIR}/test_logs',