Bug 117212 - [Windows] Revise Windows code in NRWT to properly distinguish between "win32" and "cygwin" behavior
Summary: [Windows] Revise Windows code in NRWT to properly distinguish between "win32"...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on: 117098
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-04 15:10 PDT by Brent Fulgham
Modified: 2013-06-04 16:48 PDT (History)
5 users (show)

See Also:


Attachments
Patch (7.03 KB, patch)
2013-06-04 15:14 PDT, Brent Fulgham
dpranke: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2013-06-04 15:10:34 PDT
Dirk Pranke pointed out that changes I made under Bug 117098 improperly treated the "win32" and "cygwin" variants of Windows builds as the same thing.  Unfortunately, Windows does not provide a 'ps' tool, and so cannot be handled the same way as our Cygwin infrastructure.

This patch makes the following corrections:

1. It returns to the original "win32" behavior of returning an empty list when attempting to find running PIDs.
2. Revise crashlog object to accept a "results directory" argument, rather than requiring the user to pass a port object when attempting to retrieve crash logs.
Comment 1 Brent Fulgham 2013-06-04 15:14:42 PDT
Created attachment 203730 [details]
Patch
Comment 2 Dirk Pranke 2013-06-04 15:30:43 PDT
Comment on attachment 203730 [details]
Patch

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

> Tools/Scripts/webkitpy/common/system/crashlogs.py:39
> +        self._results_directory = results_directory

I was suggesting you make one change or the other, and you came up with a weird hybrid :). I would just pass results_directory into find_newest_log(), but this is okay, too.
Comment 3 Brent Fulgham 2013-06-04 16:48:03 PDT
Committed r151191: <http://trac.webkit.org/changeset/151191>