Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Issue 10388191: Make gypv8sh.py compatible with ninja on Windows. (Closed)

Created:
8 years, 7 months ago by M-A Ruel
Modified:
8 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org
Base URL:
bombe.local:src/chrome/src@master
Visibility:
Public.

Description

Make gypv8sh.py compatible with ninja on Windows. This is because python's subprocess.py excepts GetStdHandle(STD_INPUT_HANDLE) to return a valid handle and it seems ninja on Windows doesn't give one, causing the subprocess.call() to fail unless we request stdin to be redirected. Also fix file handle lifetime in gypv8sh.py When an exception is thrown, the file handle could still be open, causing an exception while trying to remove it in the exception handler due to file locking on Windows. Note that the exception being generated is another problem but this exception in the exception handler was masking the original error. R=scr@chromium.org BUG= TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137902

Patch Set 1 #

Patch Set 2 : Made the handling better so the real exception is printed out correctly #

Patch Set 3 : Fix the error while at it #

Patch Set 4 : update copyright year #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M tools/gypv8sh.py View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
M-A Ruel
8 years, 7 months ago (2012-05-18 14:46:20 UTC) #1
M-A Ruel
Updated CL subject, cc'ed Scott so he is aware of the problem, to reproduce, simply ...
8 years, 7 months ago (2012-05-18 15:13:38 UTC) #2
M-A Ruel
FTR, here's the error message: ...\chrome\src\out\Release>ninja unit_tests [2/650] RULE unit_tests: js2unit brows...w/print_preview_utils_unittest.gtestjs FAILED: cmd /s ...
8 years, 7 months ago (2012-05-18 15:17:05 UTC) #3
scottmg
On 2012/05/18 15:13:38, Marc-Antoine Ruel wrote: > Updated CL subject, cc'ed Scott so he is ...
8 years, 7 months ago (2012-05-18 15:40:21 UTC) #4
scottmg
> a similar change here: Oops, wrong link: https://chromiumcodereview.appspot.com/10332081/
8 years, 7 months ago (2012-05-18 15:41:23 UTC) #5
M-A Ruel
On 2012/05/18 15:40:21, scottmg wrote: > On 2012/05/18 15:13:38, Marc-Antoine Ruel wrote: > > Updated ...
8 years, 7 months ago (2012-05-18 15:43:42 UTC) #6
M-A Ruel
Scott, want to approve? Sheridan is OOO today.
8 years, 7 months ago (2012-05-18 17:20:29 UTC) #7
scottmg
8 years, 7 months ago (2012-05-18 17:25:06 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698