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

Issue 1549006: Make build-bisect script work on win.... (Closed)

Created:
10 years, 8 months ago by Nirnimesh
Modified:
9 years, 7 months ago
Reviewers:
Kavita Kanetkar
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make build-bisect script work on win. Unzip using python rather than using the unzip command which might not be available on windows. TEST=NONE BUG=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43160

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 18

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -33 lines) Patch
M build/build-bisect.py View 1 2 3 4 5 6 11 chunks +62 lines, -33 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Nirnimesh
10 years, 8 months ago (2010-03-30 23:28:00 UTC) #1
Kavita Kanetkar
Thanks for quickly implementing this! http://codereview.chromium.org/1549006/diff/7001/8001 File build/build-bisect.py (right): http://codereview.chromium.org/1549006/diff/7001/8001#newcode58 build/build-bisect.py:58: def Unzip(filename, dir): I ...
10 years, 8 months ago (2010-03-31 00:10:20 UTC) #2
Nirnimesh
new diffs up. Thanks for the quick review. http://codereview.chromium.org/1549006/diff/7001/8001 File build/build-bisect.py (right): http://codereview.chromium.org/1549006/diff/7001/8001#newcode58 build/build-bisect.py:58: def ...
10 years, 8 months ago (2010-03-31 00:22:10 UTC) #3
Kavita Kanetkar
LGTM http://codereview.chromium.org/1549006/diff/7001/8001 File build/build-bisect.py (right): http://codereview.chromium.org/1549006/diff/7001/8001#newcode64 build/build-bisect.py:64: os.mkdir(dir) I'd like it to exit. Stack trace ...
10 years, 8 months ago (2010-03-31 00:47:14 UTC) #4
Nirnimesh
10 years, 8 months ago (2010-03-31 01:05:06 UTC) #5
http://codereview.chromium.org/1549006/diff/7001/8001
File build/build-bisect.py (right):

http://codereview.chromium.org/1549006/diff/7001/8001#newcode64
build/build-bisect.py:64: os.mkdir(dir)
On 2010/03/31 00:47:14, Kavita Kanetkar wrote:
> I'd like it to exit. Stack trace is fine too, so long as it doesn't continue.
> You could also print the exception in except (So that it's not supressed)
> 
> On 2010/03/31 00:22:10, Nirnimesh wrote:
> > On 2010/03/31 00:10:20, Kavita Kanetkar wrote:
> > > Things can fail. Can you wrap this in try except and just exit if unzip
> fails?
> > 
> > Don't you think it's better to spit out informative stack trace in case of
> > failure rather than silently passing on? In the current case, if unzip fails
> > there isn't much sense in carrying on.
> 
> 

Done.

http://codereview.chromium.org/1549006/diff/7001/8001#newcode152
build/build-bisect.py:152: cmd = "%s %s" % (exe, flags)
On 2010/03/31 00:47:14, Kavita Kanetkar wrote:
> On 2010/03/31 00:10:20, Kavita Kanetkar wrote:
> > Usually through out the script, please try to keep string representations
> > uniform. Either use '' or "". Preferred way is ''.
> 
> Maybe put a TODO if you're not going to change it now.

Done. Sorry, I missed this in the last pass.

Powered by Google App Engine
This is Rietveld 408576698