Changeset 136134 in webkit
- Timestamp:
- Nov 29, 2012, 8:50:45 AM (14 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/performance_tests/perftest.py (modified) (1 diff)
-
Scripts/webkitpy/performance_tests/perftest_unittest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r136117 r136134 1 2012-11-29 Eric Seidel <eric@webkit.org> 2 3 run-perf-tests --chromium-android fails due to Skia INFO logging 4 https://bugs.webkit.org/show_bug.cgi?id=103585 5 6 Reviewed by Adam Barth. 7 8 Ignore all INFO logging from Chromium code. 9 Also added some basic testing of the ignored-stderr lines code. 10 11 * Scripts/webkitpy/performance_tests/perftest.py: 12 (PerfTest): 13 * Scripts/webkitpy/performance_tests/perftest_unittest.py: 14 (MainTest.test_ignored_stderr_lines): 15 1 16 2012-11-29 Sudarsana Nagineni <sudarsana.nagineni@intel.com> 2 17 -
trunk/Tools/Scripts/webkitpy/performance_tests/perftest.py
r136051 r136134 104 104 _lines_to_ignore_in_stderr = [ 105 105 re.compile(r'^Unknown option:'), 106 re.compile(r'^\[WARNING:proxy_service.cc')] 106 re.compile(r'^\[WARNING:proxy_service.cc'), 107 re.compile(r'^\[INFO:'), 108 ] 107 109 108 110 def _should_ignore_line_in_stderr(self, line): -
trunk/Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py
r136051 r136134 100 100 self.assertEqual(actual_logs, 'some-unrecognizable-line\n') 101 101 102 def test_ignored_stderr_lines(self): 103 test = PerfTest(MockPort(), 'some-test', '/path/some-dir/some-test') 104 ignored_lines = [ 105 "Unknown option: --foo-bar", 106 "[WARNING:proxy_service.cc] bad moon a-rising", 107 "[INFO:SkFontHost_android.cpp(1158)] Use Test Config File Main /data/local/tmp/drt/android_main_fonts.xml, Fallback /data/local/tmp/drt/android_fallback_fonts.xml, Font Dir /data/local/tmp/drt/fonts/", 108 ] 109 for line in ignored_lines: 110 self.assertTrue(test._should_ignore_line_in_stderr(line)) 111 112 non_ignored_lines = [ 113 "Should not be ignored", 114 "[WARNING:chrome.cc] Something went wrong", 115 "[ERROR:main.cc] The sky has fallen", 116 ] 117 for line in non_ignored_lines: 118 self.assertFalse(test._should_ignore_line_in_stderr(line)) 119 102 120 103 121 class TestPageLoadingPerfTest(unittest.TestCase):
Note:
See TracChangeset
for help on using the changeset viewer.