test-webkitpy: should support classes and individual test names as well as modules
authordpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 21:23:59 +0000 (21:23 +0000)
committerdpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 21:23:59 +0000 (21:23 +0000)
commit08c3f74630902f66854228c2d47dd253631277cd
tree6ac1501a9175f813a0d97da59058c11d17998668
parent708e5b9725875a9024f6862b1d7f499a651aad83
test-webkitpy: should support classes and individual test names as well as modules
https://bugs.webkit.org/show_bug.cgi?id=76233

Reviewed by Adam Barth.

The default unittest.main() supports a list of individual
TestCase classes or individual tests as well as modules. This
change adds support for the same to test-webkitpy, so now you
can say

  % test-wekbitpy webkitpy.test.cat_unittest.CatTest

and

  % test-wekbitpy webkitpy.test.cat_unittest.CatTest.test_basic

in addition to

  % test-wekbitpy webkitpy.test.cat_unittest

* Scripts/test-webkitpy:
* Scripts/webkitpy/test/cat_unittest.py:
* Scripts/webkitpy/test/main.py:
(Tester.parse_args):
(Tester.run):
(Tester):
(Tester._find_modules):
(Tester._exclude):
(Tester._run_tests):
(Tester._is_module):
(Tester._log_exception):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/QueueStatusServer/__init__.py
Tools/Scripts/test-webkitpy
Tools/Scripts/webkitpy/test/main.py