aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/python_utils
diff options
context:
space:
mode:
authorGravatar Matt Kwong <matt-kwong@users.noreply.github.com>2017-05-31 15:16:31 -0700
committerGravatar GitHub <noreply@github.com>2017-05-31 15:16:31 -0700
commit4e55bf12936a304aebe0b00d0a6270a35730571e (patch)
treec6e5f9db8419017a221a406dd2ce508796cf3fed /tools/run_tests/python_utils
parentf9b90428df3496175cf30b2a905d4dd1652463a3 (diff)
parentd8543c4e0f4ff827337654e198d41ff5539a2b9e (diff)
Merge pull request #11348 from matt-kwong/upload_windows
Enable uploading more test results to BQ
Diffstat (limited to 'tools/run_tests/python_utils')
-rwxr-xr-xtools/run_tests/python_utils/jobset.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/run_tests/python_utils/jobset.py b/tools/run_tests/python_utils/jobset.py
index 3ff773300f..def612881e 100755
--- a/tools/run_tests/python_utils/jobset.py
+++ b/tools/run_tests/python_utils/jobset.py
@@ -276,8 +276,13 @@ class Job(object):
env = sanitized_environment(env)
self._start = time.time()
cmdline = self._spec.cmdline
- if measure_cpu_costs:
+ # The Unix time command is finicky when used with MSBuild, so we don't use it
+ # with jobs that run MSBuild.
+ global measure_cpu_costs
+ if measure_cpu_costs and not 'vsprojects\\build' in cmdline[0]:
cmdline = ['time', '-p'] + cmdline
+ else:
+ measure_cpu_costs = False
try_start = lambda: subprocess.Popen(args=cmdline,
stderr=subprocess.STDOUT,
stdout=self._tempfile,