⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249023 in webkit


Ignore:
Timestamp:
Aug 22, 2019, 12:04:52 PM (7 years ago)
Author:
Jonathan Bedard
Message:

run-webkit-tests: Use -noBulkSymbolication when calling spindump
https://bugs.webkit.org/show_bug.cgi?id=201000
<rdar://problem/53778938>

Reviewed by Alexey Proskuryakov.

  • Scripts/webkitpy/port/darwin.py:

(DarwinPort.sample_process): Attempt to symbolicate with -noBulkSymbolication first.

  • Scripts/webkitpy/port/darwin_testcase.py:

(DarwinTest.test_tailspin):
(DarwinTest.test_get_crash_log): Deleted.

  • Scripts/webkitpy/port/ios_device_unittest.py:

(IOSDeviceTest.test_tailspin):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r249021 r249023  
     12019-08-22  Jonathan Bedard  <jbedard@apple.com>
     2
     3        run-webkit-tests: Use -noBulkSymbolication when calling spindump
     4        https://bugs.webkit.org/show_bug.cgi?id=201000
     5        <rdar://problem/53778938>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * Scripts/webkitpy/port/darwin.py:
     10        (DarwinPort.sample_process): Attempt to symbolicate with -noBulkSymbolication first.
     11        * Scripts/webkitpy/port/darwin_testcase.py:
     12        (DarwinTest.test_tailspin):
     13        (DarwinTest.test_get_crash_log): Deleted.
     14        * Scripts/webkitpy/port/ios_device_unittest.py:
     15        (IOSDeviceTest.test_tailspin):
     16
    1172019-08-22  Zhifei Fang  <zhifei_fang@apple.com>
    218
  • trunk/Tools/Scripts/webkitpy/port/darwin.py

    r245885 r249023  
    173173        exit_status = host.executive.run_command(command, return_exit_code=True)
    174174        if not exit_status:  # Symbolicate tailspin log using spindump
     175            spindump_command = [
     176                '/usr/sbin/spindump',
     177                '-i', temp_tailspin_file_path,
     178                '-file', DarwinPort.tailspin_file_path(host, name, pid, str(tempdir)),
     179            ]
    175180            try:
    176                 host.executive.run_command([
    177                     '/usr/sbin/spindump',
    178                     '-i',
    179                     temp_tailspin_file_path,
    180                     '-file',
    181                     DarwinPort.tailspin_file_path(host, name, pid, str(tempdir)),
    182                 ])
     181                exit_code = host.executive.run_command(spindump_command + ['-noBulkSymbolication'], return_exit_code=True)
     182
     183                # FIXME: Remove the fallback when we no longer support Catalina.
     184                if not exit_code:
     185                    host.executive.run_command(spindump_command)
    183186                host.filesystem.move_to_base_host(DarwinPort.tailspin_file_path(host, name, pid, str(tempdir)),
    184187                                                  DarwinPort.tailspin_file_path(self.host, name, pid, self.results_directory()))
  • trunk/Tools/Scripts/webkitpy/port/darwin_testcase.py

    r245824 r249023  
    108108        port.host.filesystem.files['/__im_tmp/tmp_0_/test-42-tailspin.txt'] = 'Symbolocated tailspin file'
    109109        port.host.executive = MockExecutive2(run_command_fn=logging_run_command)
    110         expected_stdout = "['/usr/bin/sudo', '-n', '/usr/bin/tailspin', 'save', '-n', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt']\n['/usr/sbin/spindump', '-i', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt', '-file', '/__im_tmp/tmp_0_/test-42-tailspin.txt']\n"
     110        expected_stdout = """['/usr/bin/sudo', '-n', '/usr/bin/tailspin', 'save', '-n', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt']
     111['/usr/sbin/spindump', '-i', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt', '-file', '/__im_tmp/tmp_0_/test-42-tailspin.txt', '-noBulkSymbolication']
     112['/usr/sbin/spindump', '-i', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt', '-file', '/__im_tmp/tmp_0_/test-42-tailspin.txt']
     113"""
    111114        OutputCapture().assert_outputs(self, port.sample_process, args=['test', 42], expected_stdout=expected_stdout)
    112115        self.assertEqual(port.host.filesystem.files['/mock-build/layout-test-results/test-42-tailspin.txt'], 'Symbolocated tailspin file')
  • trunk/Tools/Scripts/webkitpy/port/ios_device_unittest.py

    r247353 r249023  
    5555        port.host.filesystem.files['/__im_tmp/tmp_0_/test-42-tailspin.txt'] = 'Symbolocated tailspin file'
    5656        port.host.executive = MockExecutive2(run_command_fn=logging_run_command)
    57         expected_stdout = "['/usr/bin/tailspin', 'save', '-n', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt']\n['/usr/sbin/spindump', '-i', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt', '-file', '/__im_tmp/tmp_0_/test-42-tailspin.txt']\n"
     57        expected_stdout = """['/usr/bin/tailspin', 'save', '-n', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt']
     58['/usr/sbin/spindump', '-i', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt', '-file', '/__im_tmp/tmp_0_/test-42-tailspin.txt', '-noBulkSymbolication']
     59['/usr/sbin/spindump', '-i', '/__im_tmp/tmp_0_/test-42-tailspin-temp.txt', '-file', '/__im_tmp/tmp_0_/test-42-tailspin.txt']
     60"""
    5861        OutputCapture().assert_outputs(self, port.sample_process, args=['test', 42], expected_stdout=expected_stdout)
    5962        self.assertEqual(port.host.filesystem.files['/mock-build/layout-test-results/test-42-tailspin.txt'], 'Symbolocated tailspin file')
Note: See TracChangeset for help on using the changeset viewer.