Changeset 251901 in webkit


Ignore:
Timestamp:
Oct 31, 2019 6:39:43 PM (4 years ago)
Author:
Jonathan Bedard
Message:

REGRESSION (r251808): run-webkit-test cannot show results.html
https://bugs.webkit.org/show_bug.cgi?id=203709
<rdar://problem/56798620>

Reviewed by Stephanie Lewis.

  • Scripts/webkitpy/port/darwin.py:

(DarwinPort.show_results_html_file): os.devnull is a string, not a file.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r251898 r251901  
     12019-10-31  Jonathan Bedard  <jbedard@apple.com>
     2
     3        REGRESSION (r251808): run-webkit-test cannot show results.html
     4        https://bugs.webkit.org/show_bug.cgi?id=203709
     5        <rdar://problem/56798620>
     6
     7        Reviewed by Stephanie Lewis.
     8
     9        * Scripts/webkitpy/port/darwin.py:
     10        (DarwinPort.show_results_html_file): os.devnull is a string, not a file.
     11
    1122019-10-31  Matt Baker  <mattbaker@apple.com>
    213
  • trunk/Tools/Scripts/webkitpy/port/darwin.py

    r251808 r251901  
    8585        # to exit and we want the output to show up on stdout in case there are errors
    8686        # launching the browser.
    87         self._executive.popen([self.path_to_script('run-safari')] + self._arguments_for_configuration() + ['--no-saved-state', '-NSOpen', results_filename],
    88             cwd=self.webkit_base(), stdout=os.devnull, stderr=os.devnull)
     87        with open(os.devnull) as devnull:
     88            self._executive.popen([self.path_to_script('run-safari')] + self._arguments_for_configuration() + ['--no-saved-state', '-NSOpen', results_filename],
     89                cwd=self.webkit_base(), stdout=devnull, stderr=devnull)
    8990
    9091    @memoized
Note: See TracChangeset for help on using the changeset viewer.