⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136134 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 8:50:45 AM (14 years ago)
Author:
eric@webkit.org
Message:

run-perf-tests --chromium-android fails due to Skia INFO logging
​https://bugs.webkit.org/show_bug.cgi?id=103585

Reviewed by Adam Barth.

Ignore all INFO logging from Chromium code.
Also added some basic testing of the ignored-stderr lines code.

  • Scripts/webkitpy/performance_tests/perftest.py:

(PerfTest):

  • Scripts/webkitpy/performance_tests/perftest_unittest.py:

(MainTest.test_ignored_stderr_lines):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r136117 r136134  
     12012-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
    1162012-11-29  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
    217
  • trunk/Tools/Scripts/webkitpy/performance_tests/perftest.py

    r136051 r136134  
    104104    _lines_to_ignore_in_stderr = [
    105105        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    ]
    107109
    108110    def _should_ignore_line_in_stderr(self, line):
  • trunk/Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py

    r136051 r136134  
    100100        self.assertEqual(actual_logs, 'some-unrecognizable-line\n')
    101101
     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
    102120
    103121class TestPageLoadingPerfTest(unittest.TestCase):
Note: See TracChangeset for help on using the changeset viewer.