Changeset 85446 in webkit


Ignore:
Timestamp:
May 1, 2011 5:58:23 PM (13 years ago)
Author:
eric@webkit.org
Message:

2011-05-01 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

Make most scm.py tests pass in preparation for splitting them up
https://bugs.webkit.org/show_bug.cgi?id=59904

There is one remaining failure:
webkitpy.common.checkout.scm.scm_unittest.GitTestWithMock.test_create_patch
which identifies a difference between the SVN and Git versions of the
SCM api. I'm not going to bother fixing that until we split out all
the tests.

  • Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85443 r85446  
     12011-05-01  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        Make most scm.py tests pass in preparation for splitting them up
     6        https://bugs.webkit.org/show_bug.cgi?id=59904
     7
     8        There is one remaining failure:
     9        webkitpy.common.checkout.scm.scm_unittest.GitTestWithMock.test_create_patch
     10        which identifies a difference between the SVN and Git versions of the
     11        SCM api.  I'm not going to bother fixing that until we split out all
     12        the tests.
     13
     14        * Scripts/webkitpy/common/checkout/scm/scm_unittest.py:
     15
    1162011-05-01  Patrick Gansterer  <paroga@webkit.org>
    217
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py

    r85427 r85446  
    4747from datetime import date
    4848from webkitpy.common.checkout.api import Checkout
    49 from webkitpy.common.checkout.scm import detect_scm_system, SCM, SVN, Git, CheckoutNeedsUpdate, commit_error_handler, AuthenticationError, AmbiguousCommitError, find_checkout_root, default_scm
     49from .scm import detect_scm_system, SCM, SVN, Git, CheckoutNeedsUpdate, commit_error_handler, AuthenticationError, AmbiguousCommitError, find_checkout_root, default_scm
    5050from webkitpy.common.config.committers import Committer  # FIXME: This should not be needed
    5151from webkitpy.common.net.bugzilla import Attachment # FIXME: This should not be needed
     
    286286        attachment.contents = lambda: patch_contents
    287287
    288         joe_cool = Committer(name="Joe Cool", email_or_emails=None)
     288        joe_cool = Committer("Joe Cool", "joe@cool.com")
    289289        attachment.reviewer = lambda: joe_cool
    290290
     
    14511451
    14521452    def test_create_patch(self):
    1453         expected_stderr = "MOCK run_command: ['git', 'merge-base', u'refs/remotes/origin/master', 'HEAD']\nMOCK run_command: ['git', 'diff', '--binary', '--no-ext-diff', '--full-index', '-M', 'MOCK output of child process', '--']\n"
     1453        expected_stderr = "MOCK run_command: ['git', 'merge-base', u'refs/remotes/origin/master', 'HEAD']\nMOCK run_command: ['git', 'diff', '--binary', '--no-ext-diff', '--full-index', '-M', 'MOCK output of child process', '--']\nMOCK run_command: ['git', 'log', '-25']\n"
    14541454        OutputCapture().assert_outputs(self, self.scm.create_patch, kwargs={'changed_files': None}, expected_stderr=expected_stderr)
    14551455
Note: See TracChangeset for help on using the changeset viewer.