Changeset 122657 in webkit


Ignore:
Timestamp:
Jul 13, 2012 7:09:44 PM (12 years ago)
Author:
dpranke@chromium.org
Message:

nrwt: actually print the exception name and message for otherwise unhandled exceptions
https://bugs.webkit.org/show_bug.cgi?id=91305

Reviewed by Adam Barth.

Two more places where I was printing the stack trace but not the
exception itself :(. These two spots can't easily be
unit-tested, but I tested them by hand.

  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:

(run):
(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r122648 r122657  
     12012-07-13  Dirk Pranke  <dpranke@chromium.org>
     2
     3        nrwt: actually print the exception name and message for otherwise unhandled exceptions
     4        https://bugs.webkit.org/show_bug.cgi?id=91305
     5
     6        Reviewed by Adam Barth.
     7
     8        Two more places where I was printing the stack trace but not the
     9        exception itself :(. These two spots can't easily be
     10        unit-tested, but I tested them by hand.
     11
     12        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     13        (run):
     14        (main):
     15
    1162012-07-13  Josh Hawn  <jhawn@apple.com>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r122615 r122657  
    133133        exception_type, exception_value, exception_traceback = sys.exc_info()
    134134        if exception_type not in (KeyboardInterrupt, TestRunInterruptedException, WorkerException):
     135            print >> sys.stderr, '\n%s raised: %s' % (exception_type.__name__, exception_value)
    135136            stack_utils.log_traceback(_log.error, exception_traceback)
    136137        raise
     
    471472        print >> sys.stderr, str(e)
    472473        return EXCEPTIONAL_EXIT_STATUS
    473     except:
     474    except Exception, e:
     475        print >> sys.stderr, '\n%s raised: %s' % (e.__class__.__name__, str(e))
    474476        traceback.print_exc(file=sys.stderr)
    475477        raise
Note: See TracChangeset for help on using the changeset viewer.