Changeset 141402 in webkit


Ignore:
Timestamp:
Jan 31, 2013, 4:43:15 AM (13 years ago)
Author:
kov@webkit.org
Message:

[GTK] run-gtk-tests does not respect the -d argument
https://bugs.webkit.org/show_bug.cgi?id=107822

Reviewed by Philippe Normand.

  • Scripts/run-gtk-tests:

(TestRunner.init): use the value for the debug option to decide what
build_type to request a path for.

  • gtk/common.py:

(get_build_path): now accepts a build_type argument instead of trying both
Release and Debug in order, defaults to release.
(build_path): takes and passes a build_type argument, no default value.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r141397 r141402  
     12013-01-31  Gustavo Noronha Silva  <gns@gnome.org>
     2
     3        [GTK] run-gtk-tests does not respect the -d argument
     4        https://bugs.webkit.org/show_bug.cgi?id=107822
     5
     6        Reviewed by Philippe Normand.
     7
     8        * Scripts/run-gtk-tests:
     9        (TestRunner.__init__): use the value for the debug option to decide what
     10        build_type to request a path for.
     11        * gtk/common.py:
     12        (get_build_path): now accepts a build_type argument instead of trying both
     13        Release and Debug in order, defaults to release.
     14        (build_path): takes and passes a build_type argument, no default value.
     15
    1162013-01-31  Christophe Dumez  <dchris@gmail.com>
    217
  • trunk/Tools/Scripts/run-gtk-tests

    r141096 r141402  
    8787    def __init__(self, options, tests=[]):
    8888        self._options = options
    89         self._programs_path = common.build_path("Programs")
     89
     90        if options.debug:
     91            build_type = 'Debug'
     92        else:
     93            build_type = 'Release'
     94
     95        self._programs_path = common.build_path(build_type, "Programs")
    9096        self._tests = self._get_tests(tests)
    9197        self._skipped_tests = TestRunner.SKIPPED
  • trunk/Tools/gtk/common.py

    r139048 r141402  
    3737
    3838
    39 def get_build_path():
     39def get_build_path(build_type='Release'):
    4040    global build_dir
    4141    if build_dir:
     
    5858        return build_dir
    5959
    60     for build_type in ('Release', 'Debug'):
     60    if build_type:
    6161        build_dir = top_level_path('WebKitBuild', build_type)
    6262        if is_valid_build_directory(build_dir):
     
    8080
    8181
    82 def build_path(*args):
    83     return os.path.join(*(get_build_path(),) + args)
     82def build_path(build_type, *args):
     83    return os.path.join(*(get_build_path(build_type),) + args)
    8484
    8585
Note: See TracChangeset for help on using the changeset viewer.