Changeset 83015 in webkit


Ignore:
Timestamp:
Apr 5, 2011 8:58:08 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-05 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r82978, r82999, and r83001.
http://trac.webkit.org/changeset/82978
http://trac.webkit.org/changeset/82999
http://trac.webkit.org/changeset/83001
https://bugs.webkit.org/show_bug.cgi?id=57913

Does not work in Python 2.5 (Requested by abarth on #webkit).

  • Scripts/webkitpy/common/system/executive.py:
  • Scripts/webkitpy/common/system/executive_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83010 r83015  
     12011-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
    1142011-04-05  Chang Shu  <cshu@webkit.org>
    215
  • trunk/Tools/Scripts/webkitpy/common/system/executive.py

    r83001 r83015  
    2828# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2929
    30 from __future__ import with_statement
    31 
    3230try:
    3331    # This API exists only in Python 2.6 and higher.  :(
     
    4644import sys
    4745import time
    48 import warnings
    4946
    5047from webkitpy.common.system.deprecated_logging import tee
     
    8481        self.output = output
    8582        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.output
    92             return self.message
    9383
    9484    def message_with_output(self, output_limit=500):
  • trunk/Tools/Scripts/webkitpy/common/system/executive_unittest.py

    r82978 r83015  
    200200        # Maximum pid number on Linux is 32768 by default
    201201        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.