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

Issue 10694077: Make PyAuto functional tests compatible with python 2.7 (Closed)

Created:
8 years, 5 months ago by fdeng1
Modified:
8 years, 5 months ago
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1, Nirnimesh
Visibility:
Public.

Description

Make PyAuto functional tests compatible with python 2.7 Previously a pyauto functional test tries to restart itself with a correct version of python(i.e. 2.6) if it finds out the current python version is not 2.6. Make changes to pyauto_functional.py so that it will check the value of an environment variable DO_NOT_RESTART_PYTHON_FOR_PYAUTO when the test starts. If DO_NOT_RESTART_PYTHON_FOR_PYAUTO is set (to any value), it will not try to restart itself regardless what the current python version is. This is to allow users to run PyAuto with python 2.7. Users of python 2.7 can now run PyAuto functional tests by setting this environment variable (to any value). BUG=None TEST=Ran test_basic.py with DO_NOT_RESTART_PYTHON_FOR_PYAUTO set and unset. NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146284

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M chrome/test/functional/pyauto_functional.py View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
fdeng1
Hi Dennis and Nirnimesh, I've modified pyauto_functional.py to make it be able to run with ...
8 years, 5 months ago (2012-07-04 00:58:39 UTC) #1
dennis_jeffrey
https://chromiumcodereview.appspot.com/10694077/diff/1/chrome/test/functional/pyauto_functional.py File chrome/test/functional/pyauto_functional.py (right): https://chromiumcodereview.appspot.com/10694077/diff/1/chrome/test/functional/pyauto_functional.py#newcode86 chrome/test/functional/pyauto_functional.py:86: RunWithCorrectPythonIfNecessary() It might make more sense to add the ...
8 years, 5 months ago (2012-07-04 01:04:18 UTC) #2
fdeng1
Hi Craig, Would you please take a look at this cl. I am trying to ...
8 years, 5 months ago (2012-07-09 20:52:37 UTC) #3
craigdh
On 2012/07/09 20:52:37, fdeng1 wrote: > Hi Craig, > > Would you please take a ...
8 years, 5 months ago (2012-07-09 21:13:15 UTC) #4
Nirnimesh
LGTM. Please add notes at http://dev.chromium.org/developers/testing/pyauto about this, after committing. https://chromiumcodereview.appspot.com/10694077/diff/7002/chrome/test/functional/pyauto_functional.py File chrome/test/functional/pyauto_functional.py (right): https://chromiumcodereview.appspot.com/10694077/diff/7002/chrome/test/functional/pyauto_functional.py#newcode80 ...
8 years, 5 months ago (2012-07-12 02:36:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdeng@chromium.org/10694077/15001
8 years, 5 months ago (2012-07-12 03:46:58 UTC) #6
commit-bot: I haz the power
Change committed as 146284
8 years, 5 months ago (2012-07-12 03:47:04 UTC) #7
fdeng1
8 years, 5 months ago (2012-07-12 03:47:52 UTC) #8
Thanks Nirnimesh. I've addressed your comment.

https://chromiumcodereview.appspot.com/10694077/diff/7002/chrome/test/functio...
File chrome/test/functional/pyauto_functional.py (right):

https://chromiumcodereview.appspot.com/10694077/diff/7002/chrome/test/functio...
chrome/test/functional/pyauto_functional.py:80: # Check the environment variable
DO_NOT_RESTART_PYTHON_FOR_PYAUTO. If
On 2012/07/12 02:36:24, Nirnimesh wrote:
> The comment is too long, and is explaining the code. Change to:
> Do not attempt to figure out python versions if
DO_NOT_RESTART_PYTHON_FOR_PYAUTO
> is set.

Done.

Powered by Google App Engine
This is Rietveld 408576698