Changeset 82978 in webkit
- Timestamp:
- Apr 5, 2011 2:04:16 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r82972 r82978 1 2011-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 1 10 2011-04-05 Mihai Parparita <mihaip@chromium.org> 2 11 -
trunk/Tools/Scripts/webkitpy/common/system/executive.py
r82770 r82978 82 82 self.cwd = cwd 83 83 84 def __str__(self): 85 if self.output: 86 return self.message + "\n" + self.output 87 return self.message 88 84 89 def message_with_output(self, output_limit=500): 85 90 if self.output: -
trunk/Tools/Scripts/webkitpy/common/system/executive_unittest.py
r82770 r82978 200 200 # Maximum pid number on Linux is 32768 by default 201 201 self.assertFalse(executive.check_running_pid(100000)) 202 203 204 class 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.