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

Issue 1234004: Add control test for login_CryptohomeMounted (Closed)

Created:
10 years, 9 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
petkov, gauravsh, sosa
CC:
chromium-os-reviews_chromium.org, kmixter1, seano, ericli, sosa, petkov
Visibility:
Public.

Description

Add control test for login_CryptohomeMounted When we log in with the localaccount, we should get a tmpfs instead of a cryptohome. This tests that, and also acts as a control to ensure that we're not returning false positives in the other cryptohome test.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix spacing, comments per gauravsh #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M client/bin/site_login.py View 1 4 chunks +5 lines, -5 lines 0 comments Download
M client/site_tests/login_CryptohomeMounted/control View 1 chunk +4 lines, -5 lines 0 comments Download
M client/site_tests/login_CryptohomeMounted/login_CryptohomeMounted.py View 1 3 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Chris Masone
10 years, 9 months ago (2010-03-25 01:25:18 UTC) #1
gauravsh
http://codereview.chromium.org/1234004/diff/1/3 File client/site_tests/login_CryptohomeMounted/control (left): http://codereview.chromium.org/1234004/diff/1/3#oldcode21 client/site_tests/login_CryptohomeMounted/control:21: # is_control=True, What does the is_control parameter denote? http://codereview.chromium.org/1234004/diff/1/4 ...
10 years, 9 months ago (2010-03-25 01:40:24 UTC) #2
gauravsh
Also, maybe this is an autotest convention, but what does "tag='control'" do? On Wed, Mar ...
10 years, 9 months ago (2010-03-25 01:44:25 UTC) #3
Chris Masone
and, the "tag" arg is an autotest convention that allows you to label tests that ...
10 years, 9 months ago (2010-03-25 03:33:16 UTC) #4
gauravsh
LGTM once you fix the spacing issue or alternatively show that my understanding iis wrong. ...
10 years, 9 months ago (2010-03-25 03:46:58 UTC) #5
Chris Masone
On 2010/03/25 03:46:58, gauravsh wrote: > LGTM once you fix the spacing issue or alternatively ...
10 years, 9 months ago (2010-03-25 04:26:18 UTC) #6
petkov
10 years, 9 months ago (2010-03-25 04:58:21 UTC) #7
http://codereview.chromium.org/1234004/diff/1/4
File client/site_tests/login_CryptohomeMounted/login_CryptohomeMounted.py
(right):

http://codereview.chromium.org/1234004/diff/1/4#newcode16
client/site_tests/login_CryptohomeMounted/login_CryptohomeMounted.py:16: def
run_once(self, script = 'autox_script.json', is_control = False):
On 2010/03/25 03:46:58, gauravsh wrote:
> On 2010/03/25 03:33:16, cmasone wrote:
> > On 2010/03/25 01:40:32, gauravsh wrote:
> > > Nit: no space around '='
> > 
> > I was explicitly told to put those there by sosa.
> 
> Python style guide says no spaces around keyword arguments or when default
> parameter values are specified. 

In case there's confusion -- per PEP-8, referenced by local CODING_STYLE, no
spaces around = for default parameter values and keyword arguments... Spaces
around = pretty much everywhere else.

Powered by Google App Engine
This is Rietveld 408576698