Changeset 58376 in webkit


Ignore:
Timestamp:
Apr 27, 2010 9:49:41 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-27 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

run-bindings-tests doesn't work in an SVN checkout
https://bugs.webkit.org/show_bug.cgi?id=38225

Previously detect_scm_system needed an absolute path for SVN. Now we
accept a relative path.

  • Scripts/webkitpy/common/checkout/scm.py:
  • Scripts/webkitpy/common/checkout/scm_unittest.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r58368 r58376  
     12010-04-27  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        run-bindings-tests doesn't work in an SVN checkout
     6        https://bugs.webkit.org/show_bug.cgi?id=38225
     7
     8        Previously detect_scm_system needed an absolute path for SVN.  Now we
     9        accept a relative path.
     10
     11        * Scripts/webkitpy/common/checkout/scm.py:
     12        * Scripts/webkitpy/common/checkout/scm_unittest.py:
     13
    1142010-04-27  Sam Weinig  <sam@webkit.org>
    215
  • trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm.py

    r58297 r58376  
    4242
    4343def detect_scm_system(path):
    44     if SVN.in_working_directory(path):
    45         return SVN(cwd=path)
     44    absolute_path = os.path.abspath(path)
     45
     46    if SVN.in_working_directory(absolute_path):
     47        return SVN(cwd=absolute_path)
    4648   
    47     if Git.in_working_directory(path):
    48         return Git(cwd=path)
     49    if Git.in_working_directory(absolute_path):
     50        return Git(cwd=absolute_path)
    4951   
    5052    return None
  • trunk/WebKitTools/Scripts/webkitpy/common/checkout/scm_unittest.py

    r58314 r58376  
    488488        SVNTestRepository.tear_down(self)
    489489
     490    def test_detect_scm_system_relative_url(self):
     491        scm = detect_scm_system(".")
     492        # I wanted to assert that we got the right path, but there was some
     493        # crazy magic with temp folder names that I couldn't figure out.
     494        self.assertTrue(scm.checkout_root)
     495
    490496    def test_create_patch_is_full_patch(self):
    491497        test_dir_path = os.path.join(self.svn_checkout_path, "test_dir2")
Note: See TracChangeset for help on using the changeset viewer.