Changeset 58005 in webkit


Ignore:
Timestamp:
Apr 21, 2010 12:49:28 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-04-21 Dirk Pranke <dpranke@chromium.org>

Reviewed by Dimitri Glazkov.

new-run-webkit-tests: fix a bug in the Chromium port where we would
try to talk to a crashed test_shell and raise exceptions that weren't
being caught.

https://bugs.webkit.org/show_bug.cgi?id=37941

  • Scripts/webkitpy/layout_tests/port/chromium.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r58000 r58005  
     12010-04-21  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        new-run-webkit-tests: fix a bug in the Chromium port where we would
     6        try to talk to a crashed test_shell and raise exceptions that weren't
     7        being caught.
     8
     9        https://bugs.webkit.org/show_bug.cgi?id=37941
     10
     11        * Scripts/webkitpy/layout_tests/port/chromium.py:
     12
    1132010-04-21  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    214
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium.py

    r57858 r58005  
    322322        cmd += "\n"
    323323
    324         self._proc.stdin.write(cmd)
    325         line = self._proc.stdout.readline()
    326         while line.rstrip() != "#EOF":
     324        try:
     325            self._proc.stdin.write(cmd)
     326            line = self._proc.stdout.readline()
     327        except IOError, e:
     328            _log.error("IOError communicating w/ test_shell: " + str(e))
     329            crash = True
     330
     331        while not crash and line.rstrip() != "#EOF":
    327332            # Make sure we haven't crashed.
    328333            if line == '' and self.poll() is not None:
     
    357362                error.append(line)
    358363
    359             line = self._proc.stdout.readline()
     364            try:
     365                line = self._proc.stdout.readline()
     366            except IOError, e:
     367                _log.error("IOError while reading: " + str(e))
     368                crash = True
    360369
    361370        return (crash, timeout, actual_checksum, ''.join(output),
Note: See TracChangeset for help on using the changeset viewer.