RESOLVED FIXED Bug 50045
new-run-webkit-tests: add a --dry-run / -n flag
https://bugs.webkit.org/show_bug.cgi?id=50045
Summary new-run-webkit-tests: add a --dry-run / -n flag
Dirk Pranke
Reported 2010-11-24 16:43:49 PST
new-run-webkit-tests: add a --dry-run / -n flag
Attachments
Patch (4.57 KB, patch)
2010-11-24 16:50 PST, Dirk Pranke
no flags
review feedback, fix default value for --dry-run (5.23 KB, patch)
2010-11-24 17:35 PST, Dirk Pranke
no flags
Dirk Pranke
Comment 1 2010-11-24 16:50:11 PST
Tony Chang
Comment 2 2010-11-24 17:08:05 PST
Comment on attachment 74811 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=74811&action=review > WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:612 > try: > - message_broker.run_message_loop() > + if not self._options.dry_run: > + message_broker.run_message_loop() I would put the 'if' outside try/except since the try/except doesn't seem to apply if it's a dry run.
Dirk Pranke
Comment 3 2010-11-24 17:35:13 PST
Created attachment 74817 [details] review feedback, fix default value for --dry-run
Dirk Pranke
Comment 4 2010-11-24 17:37:00 PST
(In reply to comment #2) > (From update of attachment 74811 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=74811&action=review > > > WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:612 > > try: > > - message_broker.run_message_loop() > > + if not self._options.dry_run: > > + message_broker.run_message_loop() > > I would put the 'if' outside try/except since the try/except doesn't seem to apply if it's a dry run. Done. I was attempting to follow the "skip as little code as possible" rule with --dry-run, which sort of conflicts with the "wrap as little code as possible in the try block" rule. I think the precedence here is a bit of a toss-up, but I've done it your way. Also, fixed the default value for --dry-run which was causing all of the tests I didn't add to fail ;)
Dirk Pranke
Comment 5 2010-12-01 15:59:28 PST
Comment on attachment 74817 [details] review feedback, fix default value for --dry-run Clearing flags on attachment: 74817 Committed r73080: <http://trac.webkit.org/changeset/73080>
Dirk Pranke
Comment 6 2010-12-01 15:59:33 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.