Changeset 83015 in webkit
- Timestamp:
- Apr 5, 2011 8:58:08 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r83010 r83015 1 2011-04-05 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r82978, r82999, and r83001. 4 http://trac.webkit.org/changeset/82978 5 http://trac.webkit.org/changeset/82999 6 http://trac.webkit.org/changeset/83001 7 https://bugs.webkit.org/show_bug.cgi?id=57913 8 9 Does not work in Python 2.5 (Requested by abarth on #webkit). 10 11 * Scripts/webkitpy/common/system/executive.py: 12 * Scripts/webkitpy/common/system/executive_unittest.py: 13 1 14 2011-04-05 Chang Shu <cshu@webkit.org> 2 15 -
trunk/Tools/Scripts/webkitpy/common/system/executive.py
r83001 r83015 28 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 29 30 from __future__ import with_statement31 32 30 try: 33 31 # This API exists only in Python 2.6 and higher. :( … … 46 44 import sys 47 45 import time 48 import warnings49 46 50 47 from webkitpy.common.system.deprecated_logging import tee … … 84 81 self.output = output 85 82 self.cwd = cwd 86 87 def __str__(self):88 with warnings.catch_warnings():89 warnings.simplefilter("ignore")90 if self.output:91 return self.message + "\n" + self.output92 return self.message93 83 94 84 def message_with_output(self, output_limit=500): -
trunk/Tools/Scripts/webkitpy/common/system/executive_unittest.py
r82978 r83015 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.