Changeset 263648 in webkit


Ignore:
Timestamp:
Jun 29, 2020 2:32:52 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r263625): run-minibrowser --debug/--release options gone
https://bugs.webkit.org/show_bug.cgi?id=213697

Patch by Philippe Normand <pnormand@igalia.com> on 2020-06-29
Reviewed by Žan Doberšek.

  • Scripts/webkitpy/minibrowser/run_webkit_app.py:

(main): Explicitely skip the --target option. Previous code was also skipping --release and
--debug options because their dest is the same as with the --target option.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r263645 r263648  
     12020-06-29  Philippe Normand  <pnormand@igalia.com>
     2
     3        REGRESSION(r263625): run-minibrowser --debug/--release options gone
     4        https://bugs.webkit.org/show_bug.cgi?id=213697
     5
     6        Reviewed by Žan Doberšek.
     7
     8        * Scripts/webkitpy/minibrowser/run_webkit_app.py:
     9        (main): Explicitely skip the --target option. Previous code was also skipping --release and
     10        --debug options because their `dest` is the same as with the --target option.
     11
    1122020-06-29  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/Tools/Scripts/webkitpy/minibrowser/run_webkit_app.py

    r263625 r263648  
    3838        for option in group_options:
    3939            # Skip deprecated option
    40             if option.dest == "configuration":
    41                 continue
    42             default = None
    43             if option.default != ("NO", "DEFAULT"):
    44                 default = option.default
    45             option_group.add_argument(option.get_opt_string(), action=option.action, dest=option.dest,
    46                                       help=option.help, const=option.const, default=default)
     40            if option.get_opt_string() != "--target":
     41                default = None
     42                if option.default != ("NO", "DEFAULT"):
     43                    default = option.default
     44                option_group.add_argument(option.get_opt_string(), action=option.action, dest=option.dest,
     45                                          help=option.help, const=option.const, default=default)
    4746
    4847    options, args = option_parser.parse_known_args(argv)
     48
     49    if not options.configuration:
     50        options.configuration = "Release"
    4951
    5052    if set(args).issubset(["-h", "--help"]) and not options.platform:
Note: See TracChangeset for help on using the changeset viewer.