aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-02-24 22:34:48 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-02-24 22:34:48 -0800
commit0488d14c5516c83b56cab29a34f0df00826508ab (patch)
tree499c31f455d2bf1411a8090136ce87811c98830f
parentca62ff014b4a33f9ce6bf5f75786c1b282f48c60 (diff)
Add comment
-rwxr-xr-xtools/run_tests/run_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index bdda368674..49c9b2dc58 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -161,6 +161,10 @@ class CLanguage(object):
binary = 'bins/%s/%s' % (self.config.build_config, target['name'])
if os.path.isfile(binary):
if 'gtest' in target and target['gtest']:
+ # here we parse the output of --gtest_list_tests to build up a
+ # complete list of the tests contained in a binary
+ # for each test, we then add a job to run, filtering for just that
+ # test
with open(os.devnull, 'w') as fnull:
tests = subprocess.check_output([binary, '--gtest_list_tests'],
stderr=fnull)