本文整理汇总了Python中webkitpy.performance_tests.perftest.PerfTest._should_ignore_line_in_stderr方法的典型用法代码示例。如果您正苦于以下问题:Python PerfTest._should_ignore_line_in_stderr方法的具体用法?Python PerfTest._should_ignore_line_in_stderr怎么用?Python PerfTest._should_ignore_line_in_stderr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webkitpy.performance_tests.perftest.PerfTest
的用法示例。
在下文中一共展示了PerfTest._should_ignore_line_in_stderr方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_ignored_stderr_lines
# 需要导入模块: from webkitpy.performance_tests.perftest import PerfTest [as 别名]
# 或者: from webkitpy.performance_tests.perftest.PerfTest import _should_ignore_line_in_stderr [as 别名]
def test_ignored_stderr_lines(self):
test = PerfTest(MockPort(), 'some-test', '/path/some-dir/some-test')
ignored_lines = [
"Unknown option: --foo-bar",
"[WARNING:proxy_service.cc] bad moon a-rising",
"[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/",
]
for line in ignored_lines:
self.assertTrue(test._should_ignore_line_in_stderr(line))
non_ignored_lines = [
"Should not be ignored",
"[WARNING:chrome.cc] Something went wrong",
"[ERROR:main.cc] The sky has fallen",
]
for line in non_ignored_lines:
self.assertFalse(test._should_ignore_line_in_stderr(line))