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

Issue 10829203: GetServicePath should perform a scan (Closed)

Created:
8 years, 4 months ago by stanleyw
Modified:
8 years, 4 months ago
Reviewers:
krisr, Nirnimesh
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1, Nirnimesh
Base URL:
https://git.chromium.org/git/chromium/src@master
Visibility:
Public.

Description

GetServicePath should perform a scan Sometimes the scan list is not updated. It makes sense to perform a scan until we see the service path or until a timeout period is hit. TEST=run chromeos_wifi_functional BUG=None Change-Id: Ia1afd538618a79d10aaab2a0cec12377cc6477b9 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152022

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rate limiter #

Total comments: 6

Patch Set 3 : Fixed WaitUntil to work with GetServicePath #

Total comments: 2

Patch Set 4 : WaitUntil only returns retval #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -13 lines) Patch
M chrome/test/pyautolib/pyauto.py View 1 2 3 3 chunks +28 lines, -13 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
stanleyw
The network list is not always up to date so we should perform a network ...
8 years, 4 months ago (2012-08-06 23:09:58 UTC) #1
krisr
http://codereview.chromium.org/10829203/diff/1/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/1/chrome/test/pyautolib/pyauto.py#newcode5081 chrome/test/pyautolib/pyauto.py:5081: while time.time() < end_time: How fast does this spin? ...
8 years, 4 months ago (2012-08-06 23:39:13 UTC) #2
stanleyw
Rate limit using a sleep. None of the calls in between appear to be blocking ...
8 years, 4 months ago (2012-08-07 01:22:13 UTC) #3
Nirnimesh
http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py#newcode5068 chrome/test/pyautolib/pyauto.py:5068: """Returns the service path associated with an SSID. Update ...
8 years, 4 months ago (2012-08-07 23:44:50 UTC) #4
stanleyw
http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py#newcode5081 chrome/test/pyautolib/pyauto.py:5081: while time.time() < end_time: I did initially. Unfortunately, I ...
8 years, 4 months ago (2012-08-08 00:35:17 UTC) #5
Nirnimesh
http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py#newcode5081 chrome/test/pyautolib/pyauto.py:5081: while time.time() < end_time: On 2012/08/08 00:35:17, stanleyw wrote: ...
8 years, 4 months ago (2012-08-08 00:48:26 UTC) #6
stanleyw
WaitUntil wasn't returning the return value of |function| so I added a flag keep_retval to ...
8 years, 4 months ago (2012-08-08 19:28:11 UTC) #7
stanleyw
(see prev comment for changes) http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/4001/chrome/test/pyautolib/pyauto.py#newcode5068 chrome/test/pyautolib/pyauto.py:5068: """Returns the service path ...
8 years, 4 months ago (2012-08-08 19:29:08 UTC) #8
Nirnimesh
http://codereview.chromium.org/10829203/diff/8002/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/8002/chrome/test/pyautolib/pyauto.py#newcode813 chrome/test/pyautolib/pyauto.py:813: return {True: retval, False: True}[keep_retval] I think it'll be ...
8 years, 4 months ago (2012-08-08 19:51:12 UTC) #9
stanleyw
http://codereview.chromium.org/10829203/diff/8002/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/8002/chrome/test/pyautolib/pyauto.py#newcode813 chrome/test/pyautolib/pyauto.py:813: return {True: retval, False: True}[keep_retval] On 2012/08/08 19:51:13, Nirnimesh ...
8 years, 4 months ago (2012-08-08 21:38:35 UTC) #10
Nirnimesh
LGTM http://codereview.chromium.org/10829203/diff/9002/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/10829203/diff/9002/chrome/test/pyautolib/pyauto.py#newcode798 chrome/test/pyautolib/pyauto.py:798: True. append: (or matches expect_retval)
8 years, 4 months ago (2012-08-08 21:58:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stanleyw@chromium.org/10829203/9002
8 years, 4 months ago (2012-08-08 22:18:06 UTC) #12
commit-bot: I haz the power
Try job failure for 10829203-9002 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-08 23:00:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stanleyw@chromium.org/10829203/9002
8 years, 4 months ago (2012-08-16 22:52:35 UTC) #14
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 02:22:49 UTC) #15
Change committed as 152022

Powered by Google App Engine
This is Rietveld 408576698