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

Issue 7762010: Change fetch prebuilt pyauto script to download chromedriver. (Closed)

Created:
9 years, 4 months ago by kkania
Modified:
9 years, 3 months ago
Reviewers:
Nirnimesh
CC:
chromium-reviews
Visibility:
Public.

Description

Change fetch prebuilt pyauto script to download chromedriver. Also, fix it so it works on linux with a broader range of download sites. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98952

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -19 lines) Patch
M chrome/test/pyautolib/fetch_prebuilt_pyauto.py View 1 2 3 6 chunks +47 lines, -19 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
kkania
9 years, 4 months ago (2011-08-26 23:27:04 UTC) #1
Nirnimesh
http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pyauto.py File pyautolib/fetch_prebuilt_pyauto.py (right): http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pyauto.py#newcode77 pyautolib/fetch_prebuilt_pyauto.py:77: assert False, 'Could not find chrome zip at ' ...
9 years, 4 months ago (2011-08-26 23:55:27 UTC) #2
kkania
http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pyauto.py File pyautolib/fetch_prebuilt_pyauto.py (right): http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pyauto.py#newcode77 pyautolib/fetch_prebuilt_pyauto.py:77: assert False, 'Could not find chrome zip at ' ...
9 years, 3 months ago (2011-08-30 13:30:54 UTC) #3
Nirnimesh
9 years, 3 months ago (2011-08-30 16:38:34 UTC) #4
LGTM

http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pya...
File pyautolib/fetch_prebuilt_pyauto.py (right):

http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pya...
pyautolib/fetch_prebuilt_pyauto.py:77: assert False, 'Could not find chrome zip
at ' + self._url
You assert on a conditional. Here it's False, so why pretend to use the
conditional.

I must've asked to use assert in test code instead of raising exception. assert
mixes the conditional and exception in one line; or else you'd require an if
conditional: raise Exception(..), but the if part is redundant in this case

http://codereview.chromium.org/7762010/diff/4001/pyautolib/fetch_prebuilt_pya...
pyautolib/fetch_prebuilt_pyauto.py:156: if not self._options.platform == 'win':
Sorry, I got mixed up with the chat we had about file permissions on
chromedriver archiving. I thought the files were getting copied around, but
they're not -- they're downloaded, so you'll need to set the permissions always.

Feel free to revert it back.

Powered by Google App Engine
This is Rietveld 408576698