Changeset 246662 in webkit


Ignore:
Timestamp:
Jun 20, 2019 4:13:00 PM (5 years ago)
Author:
dean_johnson@apple.com
Message:

test-webkitpy is broken on macOS Catalina
https://bugs.webkit.org/show_bug.cgi?id=199078

Reviewed by Jonathan Bedard.

  • Scripts/webkitpy/test/main.py: Check if lldb tests are supported before adding them

to the runner.
(main):
(_supports_building_and_running_lldb_tests): Check if you are running macOS Catalina.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r246661 r246662  
     12019-06-20  Dean Johnson  <dean_johnson@apple.com>
     2
     3        test-webkitpy is broken on macOS Catalina
     4        https://bugs.webkit.org/show_bug.cgi?id=199078
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * Scripts/webkitpy/test/main.py: Check if lldb tests are supported before adding them
     9        to the runner.
     10        (main):
     11        (_supports_building_and_running_lldb_tests): Check if you are running macOS Catalina.
     12
    1132019-06-20  Dean Johnson  <dean_johnson@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/test/main.py

    r246221 r246662  
    7070
    7171    lldb_python_directory = _host.path_to_lldb_python_directory()
    72     if os.path.isdir(lldb_python_directory):
     72    if not _supports_building_and_running_lldb_tests():
     73        _log.info("Skipping lldb_webkit tests; not yet supported on macOS Catalina.")
     74        will_run_lldb_webkit_tests = False
     75    elif not os.path.isdir(lldb_python_directory):
     76        _log.info("Skipping lldb_webkit tests; could not find path to lldb.py '{}'.".format(lldb_python_directory))
     77        will_run_lldb_webkit_tests = False
     78    else:
    7379        if lldb_python_directory not in sys.path:
    7480            sys.path.append(lldb_python_directory)
    7581        tester.add_tree(os.path.join(_webkit_root, 'Tools', 'lldb'))
    7682        will_run_lldb_webkit_tests = True
    77     else:
    78         _log.info("Skipping lldb_webkit tests; could not find path to lldb.py '{}'.".format(lldb_python_directory))
    79         will_run_lldb_webkit_tests = False
    8083
    8184    tester.skip(('webkitpy.common.checkout.scm.scm_unittest',), 'are really, really, slow', 31818)
     
    97100
    98101    return not tester.run(will_run_lldb_webkit_tests=will_run_lldb_webkit_tests)
     102
     103
     104def _supports_building_and_running_lldb_tests():
     105    # FIXME: Remove when test-lldb is in its own script
     106    # https://bugs.webkit.org/show_bug.cgi?id=187916
     107    return not _host.platform.build_version().startswith('19A')
    99108
    100109
Note: See TracChangeset for help on using the changeset viewer.