RESOLVED WONTFIX 137750
webkit-patch should include a test command that only runs RunTests
https://bugs.webkit.org/show_bug.cgi?id=137750
Summary webkit-patch should include a test command that only runs RunTests
Jake Nielsen
Reported 2014-10-15 12:56:07 PDT
Currently the build-and-test removes local changes, cleans, builds, and then runs tests. When making changes to RunTests, only the last step is of interest. It would be nice to have a command to run in that case.
Attachments
Adds the test command (2.03 KB, patch)
2014-10-15 13:07 PDT, Jake Nielsen
dbates: review-
dbates: commit-queue-
Jake Nielsen
Comment 1 2014-10-15 13:07:16 PDT
Created attachment 239888 [details] Adds the test command
Jake Nielsen
Comment 2 2014-10-20 09:31:47 PDT
bump
Daniel Bates
Comment 3 2014-10-20 13:13:34 PDT
Comment on attachment 239888 [details] Adds the test command View in context: https://bugs.webkit.org/attachment.cgi?id=239888&action=review > Tools/Scripts/webkitpy/tool/commands/download.py:99 > +class Test(AbstractSequencedCommand): > + name = "test" > + help_text = "Run the tests" > + steps = [ > + steps.RunTests, > + ] > + > + def _prepare_state(self, options, args, tool): > + options.test = True > + Notice that steps.RunTests runs test suites that depend on a built product (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we run such test suites?
Jake Nielsen
Comment 4 2014-10-20 13:17:33 PDT
bump(In reply to comment #3) > Comment on attachment 239888 [details] > Adds the test command > > View in context: > https://bugs.webkit.org/attachment.cgi?id=239888&action=review > > > Tools/Scripts/webkitpy/tool/commands/download.py:99 > > +class Test(AbstractSequencedCommand): > > + name = "test" > > + help_text = "Run the tests" > > + steps = [ > > + steps.RunTests, > > + ] > > + > > + def _prepare_state(self, options, args, tool): > > + options.test = True > > + > > Notice that steps.RunTests runs test suites that depend on a built product > (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we > run such test suites? It assumes you've already built.
Daniel Bates
Comment 5 2014-10-20 14:02:05 PDT
(In reply to comment #4) > bump(In reply to comment #3) > > Comment on attachment 239888 [details] > > Adds the test command > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=239888&action=review > > > > > Tools/Scripts/webkitpy/tool/commands/download.py:99 > > > +class Test(AbstractSequencedCommand): > > > + name = "test" > > > + help_text = "Run the tests" > > > + steps = [ > > > + steps.RunTests, > > > + ] > > > + > > > + def _prepare_state(self, options, args, tool): > > > + options.test = True > > > + > > > > Notice that steps.RunTests runs test suites that depend on a built product > > (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we > > run such test suites? > > It assumes you've already built. Can you elaborate? Specifically, are you referring to run-webkit-tests when you say "it"?
Jake Nielsen
Comment 6 2014-10-20 14:13:01 PDT
(In reply to comment #5) > (In reply to comment #4) > > bump(In reply to comment #3) > > > Comment on attachment 239888 [details] > > > Adds the test command > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=239888&action=review > > > > > > > Tools/Scripts/webkitpy/tool/commands/download.py:99 > > > > +class Test(AbstractSequencedCommand): > > > > + name = "test" > > > > + help_text = "Run the tests" > > > > + steps = [ > > > > + steps.RunTests, > > > > + ] > > > > + > > > > + def _prepare_state(self, options, args, tool): > > > > + options.test = True > > > > + > > > > > > Notice that steps.RunTests runs test suites that depend on a built product > > > (e.g. Tools/Scripts/run-webkit-tests). How does this command work when we > > > run such test suites? > > > > It assumes you've already built. > > Can you elaborate? Specifically, are you referring to run-webkit-tests when > you say "it"? Oh, I meant the "test" command that got added to download.py by this patch.
Jake Nielsen
Comment 7 2014-10-23 10:54:28 PDT
I stand corrected. This is equivalent to ./webkit-patch build-and-test --no-clean --no-update --test so that's what I'll use.
Note You need to log in before you can comment on or make changes to this bug.