Changeset 82978 in webkit


Ignore:
Timestamp:
Apr 5, 2011 2:04:16 PM (13 years ago)
Author:
morrita@google.com
Message:

2011-04-05 MORITA Hajime <morrita@google.com>

Reviewed by Adam Barth.

webkit-patch should print git's stderr when git svn dcommit fail
http://webkit.org/b/57861

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

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r82972 r82978  
     12011-04-05  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Adam Barth.
     4
     5        webkit-patch should print git's stderr when git svn dcommit fail
     6        http://webkit.org/b/57861
     7
     8        * Scripts/webkitpy/common/checkout/scm.py:
     9
    1102011-04-05  Mihai Parparita  <mihaip@chromium.org>
    211
  • trunk/Tools/Scripts/webkitpy/common/system/executive.py

    r82770 r82978  
    8282        self.cwd = cwd
    8383
     84    def __str__(self):
     85        if self.output:
     86            return self.message + "\n" + self.output
     87        return self.message
     88
    8489    def message_with_output(self, output_limit=500):
    8590        if self.output:
  • trunk/Tools/Scripts/webkitpy/common/system/executive_unittest.py

    r82770 r82978  
    200200        # Maximum pid number on Linux is 32768 by default
    201201        self.assertFalse(executive.check_running_pid(100000))
     202
     203
     204class ScriptErrorTest(unittest.TestCase):
     205
     206    def test_str_with_message(self):
     207        try:
     208            raise ScriptError(message="message")
     209        except ScriptError, e:
     210            self.assertEqual(str(e), "message")
     211
     212    def test_str_without_message(self):
     213        try:
     214            raise ScriptError(script_args=["echo", "hello"], exit_code=1, cwd="./", output="Out")
     215        except ScriptError, e:
     216            self.assertEqual(str(e), "Failed to run \"['echo', 'hello']\" exit_code: 1 cwd: ./\nOut""")
Note: See TracChangeset for help on using the changeset viewer.