Bug 111030 - Merge more methods on PerfTest
Summary: Merge more methods on PerfTest
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks: 97510
  Show dependency treegraph
 
Reported: 2013-02-27 19:08 PST by Ryosuke Niwa
Modified: 2013-02-28 13:54 PST (History)
6 users (show)

See Also:


Attachments
Cleanup (9.53 KB, patch)
2013-02-27 19:13 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-02-27 19:08:07 PST
PerfTest has way too many miscellaneous methods. Merge them as much as we can to make the class more coherent and comprehensible.
Comment 1 Ryosuke Niwa 2013-02-27 19:13:43 PST
Created attachment 190635 [details]
Cleanup
Comment 2 WebKit Review Bot 2013-02-27 20:33:31 PST
Attachment 190635 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/webkitpy/performance_tests/perftest.py', u'Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py']" exit_code: 1
Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py:166:  [TestPerfTest.test_parse_output_with_failing_line] Instance of 'TestPerfTest' has no 'assertIsNone' member  [pylint/E1101] [5]
Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py:201:  [TestPerfTest.test_ignored_stderr_lines] Instance of 'TestPerfTest' has no 'assertEqual' member  [pylint/E1101] [5]
Total errors found: 2 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Dirk Pranke 2013-02-28 12:53:27 PST
Comment on attachment 190635 [details]
Cleanup

View in context: https://bugs.webkit.org/attachment.cgi?id=190635&action=review

>> Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py:166
>> +            self.assertIsNone(test._run_with_driver(None, None))
> 
> [TestPerfTest.test_parse_output_with_failing_line] Instance of 'TestPerfTest' has no 'assertIsNone' member  [pylint/E1101] [5]

I think this are false positives having to do with our unittest2 shenanigans. Mind filing a bug for that?
Comment 4 Ryosuke Niwa 2013-02-28 13:45:05 PST
Comment on attachment 190635 [details]
Cleanup

View in context: https://bugs.webkit.org/attachment.cgi?id=190635&action=review

>>> Tools/Scripts/webkitpy/performance_tests/perftest_unittest.py:166
>>> +            self.assertIsNone(test._run_with_driver(None, None))
>> 
>> [TestPerfTest.test_parse_output_with_failing_line] Instance of 'TestPerfTest' has no 'assertIsNone' member  [pylint/E1101] [5]
> 
> I think this are false positives having to do with our unittest2 shenanigans. Mind filing a bug for that?

Filed https://bugs.webkit.org/show_bug.cgi?id=111108.
Comment 5 Ryosuke Niwa 2013-02-28 13:54:07 PST
Comment on attachment 190635 [details]
Cleanup

Clearing flags on attachment: 190635

Committed r144363: <http://trac.webkit.org/changeset/144363>
Comment 6 Ryosuke Niwa 2013-02-28 13:54:10 PST
All reviewed patches have been landed.  Closing bug.