Bug 57807 - new-run-webkit-tests: stop driver on windows properly
Summary: new-run-webkit-tests: stop driver on windows properly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 16:44 PDT by Dirk Pranke
Modified: 2011-04-09 17:31 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.13 KB, patch)
2011-04-04 16:51 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
add unit test (5.06 KB, patch)
2011-04-04 17:11 PDT, Dirk Pranke
tony: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2011-04-04 16:44:25 PDT
new-run-webkit-tests: stop driver on windows properly
Comment 1 Dirk Pranke 2011-04-04 16:51:35 PDT
Created attachment 88160 [details]
Patch
Comment 2 Dirk Pranke 2011-04-04 16:52:46 PDT
Comment on attachment 88160 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=88160&action=review

> Tools/Scripts/webkitpy/layout_tests/port/chromium.py:-524
> -                # http://bugs.python.org/issue1731717

I've removed the comments about poll(), because it looks like it only applied to 2.4 and if we weren't reliably calling _proc.wait().
Comment 3 Dirk Pranke 2011-04-04 17:11:50 PDT
Created attachment 88168 [details]
add unit test
Comment 4 Dirk Pranke 2011-04-04 17:14:51 PDT
Comment on attachment 88168 [details]
add unit test

View in context: https://bugs.webkit.org/attachment.cgi?id=88168&action=review

> Tools/Scripts/webkitpy/layout_tests/port/chromium.py:-524
> -                # http://bugs.python.org/issue1731717

I've deleted this comment about poll()'s thread safety because it looks like it was only relevant on Python 2.4 and when we weren't reliably calling proc.wait().
Comment 5 Tony Chang 2011-04-05 09:16:55 PDT
Comment on attachment 88168 [details]
add unit test

View in context: https://bugs.webkit.org/attachment.cgi?id=88168&action=review

Did you test this on win32 python and cygwin python?

> Tools/Scripts/webkitpy/layout_tests/port/chromium.py:337
> +        self.KILL_TIMEOUT = 3.0

Nit: pull this out of __init__?  You can still refer to it with self.KILL_TIMEOUT and shadow it in a test by setting driver.KILL_TIMEOUT.
Comment 6 Dirk Pranke 2011-04-06 18:55:37 PDT
I will move it out of the __init__.

I'm stil banging on this one and some related bug fixes intended to stabilize the win ports, so there may or may not be additional changes for this patch.
Comment 7 Dirk Pranke 2011-04-09 17:31:05 PDT
Committed r83384: <http://trac.webkit.org/changeset/83384>