Roll gtest-parallel.

Rolls to 48e584a52bb9db1d1c915ea33463e9e4e1b36d1b which includes fix for
running TEST_P functions.

BUG=
R=stefan@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/50819004

Cr-Commit-Position: refs/heads/master@{#9102}
This commit is contained in:
Peter Boström 2015-04-28 15:36:09 +02:00
parent 31dc737d7a
commit 8786f637b2
2 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
URL: https://github.com/google/gtest-parallel
Version: f0bea591818cefc0327e5c9f8a14633971cf0470
Version: 48e584a52bb9db1d1c915ea33463e9e4e1b36d1b
License: Apache 2.0
License File: LICENSE

View File

@ -48,8 +48,8 @@ class FilterFormat:
self.failures.append(self.tests[job_id])
for line in self.outputs[job_id]:
print line
print ("[%d/%d] %s returned/aborted with exit code %d (%d ms)"
% (self.finished_tests, self.total_tests, test, exit_code, time_ms))
print "[%d/%d] %s returned/aborted with exit code %d (%d ms)" \
% (self.finished_tests, self.total_tests, test, exit_code, time_ms)
elif command == "TESTCNT":
self.total_tests = int(arg.split(' ', 1)[1])
print "[0/%d] Running tests...\r" % self.total_tests,
@ -125,12 +125,14 @@ else:
tests = []
for test_binary in binaries:
command = [test_binary]
if options.gtest_filter != '':
command += ['--gtest_filter=' + options.gtest_filter]
if options.gtest_also_run_disabled_tests:
command += ['--gtest_also_run_disabled_tests']
test_list = subprocess.Popen(command + ['--gtest_list_tests'],
list_command = list(command)
if options.gtest_filter != '':
list_command += ['--gtest_filter=' + options.gtest_filter]
test_list = subprocess.Popen(list_command + ['--gtest_list_tests'],
stdout=subprocess.PIPE).communicate()[0]
command += additional_args
@ -145,6 +147,9 @@ for test_binary in binaries:
line = line.strip()
if not options.gtest_also_run_disabled_tests and 'DISABLED' in line:
continue
line = line.split('#')[0].strip()
if not line:
continue
test = test_group + line
tests.append((test_binary, command, test))