| Index: mojo/tools/mopy/gtest_list_tests.py
|
| diff --git a/mojo/tools/mopy/gtest_list_tests.py b/mojo/tools/mopy/gtest_list_tests.py
|
| index 8b3369d20451ed5b41b728a770849e595564ff9b..0d5a66e9dce16f5f1ecc6eb60a2b0a816f02fff7 100644
|
| --- a/mojo/tools/mopy/gtest_list_tests.py
|
| +++ b/mojo/tools/mopy/gtest_list_tests.py
|
| @@ -2,10 +2,17 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import re
|
| +
|
| +
|
| def gtest_list_tests(gtest_list_tests_output):
|
| """Returns a list of strings formatted as TestSuite.TestFixture from the
|
| output of running --gtest_list_tests on a GTEST application."""
|
|
|
| + if not re.match("^(\w*\.\r?\n( \w*\r?\n)+)+", gtest_list_tests_output):
|
| + raise Exception("Unrecognized --gtest_list_tests output:\n%s" %
|
| + gtest_list_tests_output)
|
| +
|
| output_lines = gtest_list_tests_output.split('\n')
|
|
|
| test_list = []
|
|
|