Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Unified Diff: tools/isolate/run_test_cases_smoke_test.py

Issue 10826306: Get run_test_cases.py to fail if it fails to get the list of tests it should run. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/isolate/run_test_cases.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/run_test_cases_smoke_test.py
diff --git a/tools/isolate/run_test_cases_smoke_test.py b/tools/isolate/run_test_cases_smoke_test.py
index 00b552c0daf5ef06fa81aa964c5650a352f79e71..62ba92efaa6902213d6ae896d81ee7e88e41814e 100755
--- a/tools/isolate/run_test_cases_smoke_test.py
+++ b/tools/isolate/run_test_cases_smoke_test.py
@@ -99,6 +99,17 @@ class TraceTestCases(unittest.TestCase):
]
self._check_results(expected_out_re, out, err)
+ def test_simple_gtest_list_error(self):
+ out, err, return_code = RunTest('gtest_fake_error.py')
+
+ expected_out_re = [
+ 'Failed to run .+gtest_fake_error.py',
+ 'Unable to list tests'
+ ]
+
+ self.assertEqual(1, return_code)
+ self._check_results(expected_out_re, out, err)
+
if __name__ == '__main__':
VERBOSE = '-v' in sys.argv
« no previous file with comments | « tools/isolate/run_test_cases.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698