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

Unified Diff: scripts/master/unittests/gtest_command_unittest.py

Issue 9134001: Add parsing of "Failing tests:" from gtest output. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: '' Created 8 years, 11 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 | « scripts/master/log_parser/gtest_command.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/master/unittests/gtest_command_unittest.py
===================================================================
--- scripts/master/unittests/gtest_command_unittest.py (revision 116679)
+++ scripts/master/unittests/gtest_command_unittest.py (working copy)
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -181,6 +181,16 @@
""" % {'suppression': VALGRIND_SUPPRESSION}
+FAILING_TESTS_OUTPUT = """
+Failing tests:
+ChromeRenderViewTest.FAILS_AllowDOMStorage
+PrerenderBrowserTest.PrerenderHTML5VideoJs
+"""
+
+FAILING_TESTS_EXPECTED = ['ChromeRenderViewTest.FAILS_AllowDOMStorage',
+ 'PrerenderBrowserTest.PrerenderHTML5VideoJs']
+
+
FAILURES_SHARD = ['12>NavigationControllerTest.Reload',
'12>NavigationControllerTest/SpdyNetworkTransTest.Constructor/0',
'0>BadTest.TimesOut',
@@ -478,6 +488,13 @@
self.assertEqual(VALGRIND_SUPPRESSION,
'\n'.join(observer.Suppression(VALGRIND_HASH)))
+ observer = gtest_command.TestObserver()
+ for line in FAILING_TESTS_OUTPUT.splitlines():
+ observer.outLineReceived(line)
+ self.assertEqual(FAILING_TESTS_EXPECTED,
+ observer.FailedTests(True, True))
+
+ def DISABLED_testLogLineObserverSharding(self):
# Same tests for log parsing with sharding_supervisor.
observer = gtest_command.TestObserver()
test_data_shard = self.AlternateShards(
« no previous file with comments | « scripts/master/log_parser/gtest_command.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698