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

Issue 3471015: Suspend- function for site_wifitest (Closed)

Created:
10 years, 3 months ago by Paul Stewart
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli, petkov+cc_chromium.org
Base URL:
ssh://gitrw.chromium.org/autotest.git
Visibility:
Public.

Description

Suspend function for site_wifitest Suspend for a specified number of seconds. This makes use a if a newly created python script for using the RTC to trigger a suspend, then running a command. There is both a foreground and background variant. BUG=none TEST=Created a test in the Roaming Suite (not yet approved). Manually ran command on x201, l13 and Andretti. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=23cfe94

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add spacing #

Patch Set 3 : Describe the module in detail, and highlight issue about synchronous suspsend #

Patch Set 4 : Revamp suspend code. Nix the "after" business for now #

Patch Set 5 : Use common libs for performing suspend #

Total comments: 1

Patch Set 6 : Fixed linespacing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -2 lines) Patch
A server/site_system_suspend.py View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M server/site_wifitest.py View 1 2 3 4 5 2 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Paul Stewart
10 years, 3 months ago (2010-09-24 23:31:37 UTC) #1
Sam Leffler
http://codereview.chromium.org/3471015/diff/1/2 File server/site_system_suspend.py (right): http://codereview.chromium.org/3471015/diff/1/2#newcode10 server/site_system_suspend.py:10: style says 2 blank lines between functions/methods http://codereview.chromium.org/3471015/diff/1/2#newcode39 server/site_system_suspend.py:39: ...
10 years, 2 months ago (2010-09-27 16:28:37 UTC) #2
Paul Stewart
http://codereview.chromium.org/3471015/diff/1/2 File server/site_system_suspend.py (right): http://codereview.chromium.org/3471015/diff/1/2#newcode10 server/site_system_suspend.py:10: On 2010/09/27 16:28:37, Sam Leffler wrote: > style says ...
10 years, 2 months ago (2010-09-27 16:54:39 UTC) #3
Sameer Nanda
Drive by comments: there already are utils functions to set wake alarm (utils.set_wake_alarm) and suspend ...
10 years, 2 months ago (2010-09-27 17:00:49 UTC) #4
Paul Stewart
http://codereview.chromium.org/3471015/diff/1/2 File server/site_system_suspend.py (right): http://codereview.chromium.org/3471015/diff/1/2#newcode39 server/site_system_suspend.py:39: sts = os.waitpid(p.pid, 0)[1] Pursuant to our in-person conversation, ...
10 years, 2 months ago (2010-09-27 17:29:59 UTC) #5
Paul Stewart
Thanks Sameer. I spotted this, but was unsure how to incorporate this into non-autotest-client code ...
10 years, 2 months ago (2010-09-27 17:35:21 UTC) #6
Sam Leffler
LGTM but please resolve Sameer's comments.
10 years, 2 months ago (2010-09-27 17:37:53 UTC) #7
Sameer Nanda
The code as it is looks fine so I am ok with checking it in. ...
10 years, 2 months ago (2010-09-27 20:31:38 UTC) #8
Paul Stewart
On 2010/09/27 20:31:38, Sameer Nanda wrote: > Maybe you want to move set_wake_alarm and suspend_to_ram ...
10 years, 2 months ago (2010-09-28 22:47:16 UTC) #9
Sameer Nanda
On 2010/09/28 22:47:16, Paul Stewart wrote: > On 2010/09/27 20:31:38, Sameer Nanda wrote: > > ...
10 years, 2 months ago (2010-09-28 22:50:39 UTC) #10
Paul Stewart
Sam, Sameer, PTAL. I've incorporated the change I've done to the the autotest client common ...
10 years, 2 months ago (2010-09-29 06:26:46 UTC) #11
Sameer Nanda
10 years, 2 months ago (2010-09-29 15:36:06 UTC) #12
LGTM w/ nit

http://codereview.chromium.org/3471015/diff/19001/20002
File server/site_wifitest.py (right):

http://codereview.chromium.org/3471015/diff/19001/20002#newcode776
server/site_wifitest.py:776: 
need 2 blank lines between methods per autotest coding style.

Powered by Google App Engine
This is Rietveld 408576698