aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org>2015-01-07 11:03:19 +0000
committerpbos@webrtc.org <pbos@webrtc.org>2015-01-07 11:03:19 +0000
commit1777880f54acce46df7d1cf207e3a70ee3d6beac (patch)
tree771ada7453fca6db401918443aee884f2a4c1e4e /third_party
parent07c83a13857c11e324a8966914c2ca30be365114 (diff)
downloadwebrtc-1777880f54acce46df7d1cf207e3a70ee3d6beac.tar.gz
Roll gtest-parallel.
Includes a method for setting additional arguments to binaries. BUG=4142 R=kjellander@webrtc.org TBR=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/32969004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@8009 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'third_party')
-rw-r--r--third_party/gtest-parallel/README.webrtc2
-rwxr-xr-xthird_party/gtest-parallel/gtest-parallel13
2 files changed, 13 insertions, 2 deletions
diff --git a/third_party/gtest-parallel/README.webrtc b/third_party/gtest-parallel/README.webrtc
index b16e61532a..658ef95b0f 100644
--- a/third_party/gtest-parallel/README.webrtc
+++ b/third_party/gtest-parallel/README.webrtc
@@ -1,5 +1,5 @@
URL: https://github.com/google/gtest-parallel
-Version: ebf302fdc83f2c5afb9b7b45dc14dd0807b9e67d
+Version: e61a8975cc124c9a07cb903b76b46b3e669cd179
License: Apache 2.0
License File: LICENSE
diff --git a/third_party/gtest-parallel/gtest-parallel b/third_party/gtest-parallel/gtest-parallel
index 58affcb208..2830e818fa 100755
--- a/third_party/gtest-parallel/gtest-parallel
+++ b/third_party/gtest-parallel/gtest-parallel
@@ -80,8 +80,17 @@ class RawFormat:
def end(self):
pass
+# Remove additional arguments (anything after --).
+additional_args = []
+
+for i in range(len(sys.argv)):
+ if sys.argv[i] == '--':
+ additional_args = sys.argv[i+1:]
+ sys.argv = sys.argv[:i]
+ break
+
parser = optparse.OptionParser(
- usage = 'usage: %prog [options] executable [executable ...]')
+ usage = 'usage: %prog [options] binary [binary ...] -- [additional args]')
parser.add_option('-r', '--repeat', type='int', default=1,
help='repeat tests')
@@ -122,6 +131,8 @@ for test_binary in binaries:
test_list = subprocess.Popen(command + ['--gtest_list_tests'],
stdout=subprocess.PIPE).communicate()[0]
+ command += additional_args
+
test_group = ''
for line in test_list.split('\n'):
if not line.strip():