Changeset 91023 in webkit


Ignore:
Timestamp:
Jul 14, 2011 12:32:00 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

NRWT doesn't store the svn revision in full_results.json on chromium-win
https://bugs.webkit.org/show_bug.cgi?id=64492

Reviewed by Ojan Vafai.

This should fix the bug. Unfortunately this code is currently
impossible to test since it's impossible to mock detect_scm_system at the
moment. I started re-writing scm.detection.py to be mockable, but decided that
was best left for another day.

  • Scripts/webkitpy/layout_tests/controllers/manager.py:
  • Scripts/webkitpy/layout_tests/port/base.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r91021 r91023  
     12011-07-14  Eric Seidel  <eric@webkit.org>
     2
     3        NRWT doesn't store the svn revision in full_results.json on chromium-win
     4        https://bugs.webkit.org/show_bug.cgi?id=64492
     5
     6        Reviewed by Ojan Vafai.
     7
     8        This should fix the bug.  Unfortunately this code is currently
     9        impossible to test since it's impossible to mock detect_scm_system at the
     10        moment.  I started re-writing scm.detection.py to be mockable, but decided that
     11        was best left for another day.
     12
     13        * Scripts/webkitpy/layout_tests/controllers/manager.py:
     14        * Scripts/webkitpy/layout_tests/port/base.py:
     15
    1162011-07-14  Ojan Vafai  <ojan@chromium.org>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

    r90977 r91023  
    210210    results['has_pretty_patch'] = port_obj.pretty_patch_available()
    211211    try:
    212         results['revision'] = scm.default_scm().head_svn_revision()
     212        results['revision'] = port_object.webkit_scm().head_svn_revision()
    213213    except Exception, e:
    214214        _log.warn("Failed to determine svn revision for checkout (cwd: %s), leaving 'revision' key blank in full_results.json.\n%s" % (port_obj._filesystem.getcwd(), e))
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py

    r90810 r91023  
    3838import os
    3939
     40from webkitpy.common.memoized import memoized
    4041from webkitpy.common.net.testoutputset import AggregateTestOutputSet
     42
    4143
    4244# Handle Python < 2.6 where multiprocessing isn't available.
     
    6062
    6163_log = logutils.get_logger(__file__)
     64
    6265
    6366class DummyOptions(object):
     
    598601        WebKit source tree and the list of path components in |*comps|."""
    599602        return self._config.path_from_webkit_base(*comps)
     603
     604    @memoized
     605    def webkit_scm(self):
     606        # On the chromium bots, the cwd is the root of the chromium checkout.
     607        # self._config.webkit_base_dir() knows where the webkit root is, no other
     608        # object in NRWT seems to keep an SCM around.  (Unlike webkit-patch where it's on the Tool/Host object.)
     609        # FIXME: We should be able to get the SCM from somewhere else.
     610        return scm.detect_scm_system(self._config.webkit_base_dir())
    600611
    601612    def path_to_test_expectations_file(self):
Note: See TracChangeset for help on using the changeset viewer.