Changeset 83806 in webkit


Ignore:
Timestamp:
Apr 13, 2011 7:14:08 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-04-13 Dirk Pranke <dpranke@chromium.org>

Unreviewed, build fix.
https://bugs.webkit.org/show_bug.cgi?id=52763

r83799 broke test-webkitpy because it assumed we always have
access to a real filesystem (we don't during the unit tests).
Stubbing out the copy for now but we might need a better
solution at some point.

  • Scripts/webkitpy/layout_tests/layout_package/test_runner.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83801 r83806  
     12011-04-13  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Unreviewed, build fix.
     4        https://bugs.webkit.org/show_bug.cgi?id=52763
     5
     6        r83799 broke test-webkitpy because it assumed we always have
     7        access to a real filesystem (we don't during the unit tests).
     8        Stubbing out the copy for now but we might need a better
     9        solution at some point.
     10
     11        * Scripts/webkitpy/layout_tests/layout_package/test_runner.py:
     12
    1132011-04-13  Dirk Pranke  <dpranke@chromium.org>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/test_runner.py

    r83799 r83806  
    11951195    def _write_unexpected_results_html_file(self, unexpected_results):
    11961196        base_dir = self._port.path_from_webkit_base('Tools', 'Scripts', 'webkitpy', 'layout_tests', 'layout_package')
    1197         self._fs.copyfile(self._fs.join(base_dir, "json_results.html"), self._fs.join(self._results_directory, "json_results.html"))
     1197        results_file = self._fs.join(base_dir, 'json_results.html')
     1198        # FIXME: What should we do if this doesn't exist (e.g., in unit tests)?
     1199        if self._fs.exists(results_file):
     1200            self._fs.copyfile(results_file, self._fs.join(self._results_directory, "json_results.html"))
    11981201
    11991202    def _show_results_html_file(self):
Note: See TracChangeset for help on using the changeset viewer.