WebKit Bugzilla
Attachment 368940 Details for
Bug 197563
: run-api-tests: Add --iterations and --repeat-each
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-197563-20190503095634.patch (text/plain), 2.27 KB, created by
Jonathan Bedard
on 2019-05-03 09:56:34 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jonathan Bedard
Created:
2019-05-03 09:56:34 PDT
Size:
2.27 KB
patch
obsolete
>Index: Tools/ChangeLog >=================================================================== >--- Tools/ChangeLog (revision 244909) >+++ Tools/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2019-05-03 Jonathan Bedard <jbedard@apple.com> >+ >+ run-apit-tests: Add --iterations and --repeat-each >+ https://bugs.webkit.org/show_bug.cgi?id=197563 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * Scripts/webkitpy/api_tests/manager.py: >+ (Manager.run): Add --iterations and --repeat-each/ >+ * Scripts/webkitpy/api_tests/run_api_tests.py: >+ (parse_args): Duplicate the test list based on --iterations and --repeat-each. >+ > 2019-05-03 Commit Queue <commit-queue@webkit.org> > > Unreviewed, rolling out r244881. >Index: Tools/Scripts/webkitpy/api_tests/manager.py >=================================================================== >--- Tools/Scripts/webkitpy/api_tests/manager.py (revision 244871) >+++ Tools/Scripts/webkitpy/api_tests/manager.py (working copy) >@@ -182,6 +182,9 @@ class Manager(object): > self._stream.writeln(test) > return Manager.SUCCESS > >+ test_names = [test for test in test_names for _ in xrange(self._options.repeat_each)] >+ test_names *= self._options.iterations >+ > try: > _log.info('Running tests') > runner = Runner(self._port, self._stream) >Index: Tools/Scripts/webkitpy/api_tests/run_api_tests.py >=================================================================== >--- Tools/Scripts/webkitpy/api_tests/run_api_tests.py (revision 244871) >+++ Tools/Scripts/webkitpy/api_tests/run_api_tests.py (working copy) >@@ -123,6 +123,8 @@ def parse_args(args): > help='Number of seconds to wait before a test times out'), > optparse.make_option('--no-timeout', dest='timeout', action='store_false', > help='Disable timeouts for all tests'), >+ optparse.make_option('--iterations', type='int', default=1, help='Number of times to run the set of tests (e.g. ABCABCABC)'), >+ optparse.make_option('--repeat-each', type='int', default=1, help='Number of times to run each test (e.g. AAABBBCCC)'), > > # FIXME: Remove the default, API tests should be multiprocess > optparse.make_option('--child-processes', default=1,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 197563
:
368940
|
368972
|
369029