History log of /external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
06ed53a4b7da6f629cb6a4076ed27ff5f07ddccb 30-Nov-2016 Danny Chan <dchan@google.com> Make power load test backward compatible to older OS (<57).

- use old method of log parsing if low_battery_shutdown* option is not
available.
- The log parsing option can be removed once 57 gone stable

BUG=chrome-os-partner:60374
TEST=on Orco device with 56 and 57

Change-Id: Ibfbebb74e4b93a98483f32e0314e190caad7558d
Reviewed-on: https://chromium-review.googlesource.com/414259
Commit-Ready: danny chan <dchan@chromium.org>
Tested-by: danny chan <dchan@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
8b4fdc2687016da15a37da7767bc97d97186f647 22-Nov-2016 Daniel Erat <derat@chromium.org> autotest: Make power_LoadTest not read powerd's logs.

Update powerd_LoadTest to get powerd's low-battery shutdown
thresholds from the check_powerd_config tool instead of by
grepping through /var/log/power_manager/powerd.LATEST.

BUG=chromium:658769
TEST=ran powerd_LoadTest.fast and verified that results
display correct shutdown thresholds when powerd is
configured for either time- or percent-based shutdown

Change-Id: I9f420294d9e1f63c90de8b64c3cd12d95383692c
Reviewed-on: https://chromium-review.googlesource.com/413704
Commit-Ready: Dan Erat <derat@chromium.org>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
f364c1d04857e2f5bd20eb5fed2500cf81fbbdbe 11-Oct-2016 Ruben Rodriguez Buchillon <coconutruben@chromium.org> power_LoadTest: page-load-time now works on multiple-loops-plt

First iteration of page-load-time had a type-error when appending
multiple runs into the keyvals.
We also never cleared the page-load data inside the script.
Both are fixed now, and multi-loop behaves as intended.

BUG=None
TEST=power_LoadTest

multiple-loop entry example:

INVALID_ext_ms_page_load_time_max{perf}=7044.00_7341.00
INVALID_ext_ms_page_load_time_mean{perf}=2479.55_3139.45
INVALID_ext_ms_page_load_time_min{perf}=165.00_1364.00
INVALID_ext_ms_page_load_time_std{perf}=2053.79_1816.41

Change-Id: Ia6c97e3dd6cc68894cb68646318fbaffc0f25749
Reviewed-on: https://chromium-review.googlesource.com/396615
Commit-Ready: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Tested-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
ca1c3f354eb0a925742c2bac0473b79db1df241a 20-Sep-2016 Ruben Rodriguez Buchillon <coconutruben@chromium.org> power_LoadTest: Extracting page-load-time information into keyvals

Measure an upper-bound on page-load time during power load test, and
store in keyvals.
Measurement starts right before we update tab to new url, and ends
after the tab reports that loading is done.

BUG=None
TEST=power_LoadTest

information found in keyvals:
INVALID_ext_ms_page_load_time_max{perf}=2515
INVALID_ext_ms_page_load_time_mean{perf}=1264.63636364
INVALID_ext_ms_page_load_time_min{perf}=87
INVALID_ext_ms_page_load_time_std{perf}=791.896431787

usually without the INVALID ;)

information found in logging.debug:
09/20 10:55:11.191 DEBUG| power_LoadTest:0737| The 5 slowest
page-load-times are:
http://www.zedo.com w/ 2735 ms
http://www.att.com w/ 2537 ms
http://www.chase.com w/ 2522 ms
http://www.amazon.com w/ 2395 ms
http://www.google.com w/ 2276 ms

Change-Id: I57e8895874c8b34dbfad80f79f490a1b3c3cd966
Reviewed-on: https://chromium-review.googlesource.com/387170
Commit-Ready: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Tested-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
7c5ed505418980be00d6f5770ec6e5aa67b059ff 13-Sep-2016 Ruben Rodriguez Buchillon <coconutruben@chromium.org> power_LoadTest: Added mechanism to track time/url of successful and failed loads

Extension script records on top of current success/failure
mechanism url, timestamp, and load success/failure.
Script puts this into the debug logging, but keeps it
away from the keyvals.

BUG=chromium:642383
TEST=power_LoadTest

load success:

09/15 15:25:04.763 DEBUG| power_LoadTest:0682| [extension] @ loop_0 15:16:29:514 [load success] http://www.microsoft.com

load failure:

09/15 15:25:04.765 DEBUG| power_LoadTest:0682| [extension] @ loop_0 15:16:41:36 [load failure] http://www.myspace.com

load failure details:

09/15 15:25:04.719 DEBUG| power_LoadTest:0682| [extension] @ loop_0 15:19:51:356 [load failure details] http://www.twitter.com

15:19:48:437 | [response code] 200 | [url] http://www.shoplocal.com/static/common/img/favicon.ico| | [status line] HTTP/1.1 200 OK
15:19:48:891 | [response code] 200 | [url] https://abs.twimg.com/a/1473752312/css/t1/twitter_more_2.bundle.css| | [status line] HTTP/1.1 200 OK

[...]

15:19:48:896 | [response code] 200 | [url] https://abs.twimg.com/a/1473752312/css/t1/twitter_more_1.bundle.css| | [status line] HTTP/1.1 200 OK

Change-Id: I49ab90f20fb872f77351083ca5234c4f3a67de44
Reviewed-on: https://chromium-review.googlesource.com/384338
Tested-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
6083c7b520ddfdbb524baf626d5715013be8dbeb 30-Aug-2016 Ravi Chandra Sadineni <ravisadineni@chromium.org> Support HMP for CPUFreqStats/CPUIdleStats

BUG=chrome-os-partner:56397
TEST=test_that -b elm 100.96.48.52 power_Idle

Now the key value pairs are
percent_cpufreq_0_1_1105000_time
percent_cpufreq_2_3_1001000_time
percent_cpuidle_0_1_C0_time
percent_cpuidle_2_3_C0_time
Change-Id: Ib8da3d2daa67d7333522289f380442f6ee1a8fb5
Reviewed-on: https://chromium-review.googlesource.com/377683
Commit-Ready: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Tested-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Reviewed-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
e2ad5763d4db741f6ffdcb89479a97c6fbd628f5 01-Jun-2016 Todd Broch <tbroch@chromium.org> power_LoadTest: publish percent_cpuidle_C0_time perf value.

CPU C0 utilization can provide useful metric for tracking battery life
regressions in the absence of reliable battery drain data. Lets track
it.

BUG=chromium:616153
TEST=test_that power_LoadTest.fast_gaia

Contents of results-chart.json,

{
"percent_cpuidle_C0_time": {
"summary": {
"units": "percent",
"type": "scalar",
"value": 43.173375902954845,
"improvement_direction": "down"
}
}

Change-Id: I8615a1a872ae2bedde5ed059223c064765163d85
Reviewed-on: https://chromium-review.googlesource.com/349370
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
67cdc80fd1d8fcc604332ad9f3d03feff3bab5d8 03-Jun-2016 Todd Broch <tbroch@chromium.org> power_utils.py: create DisplayPanelSelfRefresh class.

Lets move this useful functionality to a utility class in power_utils so
that other tests might take advantage of it.

BUG=chrome-os-partner:53976
TEST=test_that power_LoadTest.fast

See PSR residency keyval =~ 35%

Change-Id: I3be07628afeb0fcc4866cd4ca2ee8037f744683d
Reviewed-on: https://chromium-review.googlesource.com/349661
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
e392076b2a0182ba2593d529dc0e01dfbcb2a5b6 03-Jun-2016 Todd Broch <tbroch@chromium.org> power_LoadTest: prefix PSR residency keyval with percent.

BUG=chrome-os-partner:53976
TEST=none

Change-Id: I415e3228419e67c2da4e8c65fb42ac5265f27802
Reviewed-on: https://chromium-review.googlesource.com/349660
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
c9c0fe619af775caca6a67928c77a00c84eb1a22 27-Apr-2016 Todd Broch <tbroch@chromium.org> power_LoadTest: check AC power applied during test.

As this is a long running test we should periodically check whether
we're on AC and if ac_ok is false fail with same exception.

BUG=none
TEST=test_that $dut power_LoadTest.1hour
Start test without AC, then plug in AC and see exception raised.

Change-Id: I2490feb641e04dec0ffbe5dd24522b5659658e37
Reviewed-on: https://chromium-review.googlesource.com/341071
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
f77f59bfb5bcb0c3ea6582502a493db8bd1de4f9 15-Apr-2016 Todd Broch <tbroch@chromium.org> power_LoadTest: Allow fake login if GAIA login fails.

BUG=chrome-os-partner:52404
TEST=below

test_that $dut power_LoadTest.fast
- test succeeds
- keyval username{perf}=GUEST is written
- all key names prepended with INVALID_

Modify control.fast so gaia_login=True and run on R50
- in addition to above see warning
'Unable to use GAIA acct powerloadtest@gmail.com. Using GUEST
instead.'

Change-Id: I1f9cfb7be36f8f2c511e99ef79d3779fb75eb082
Reviewed-on: https://chromium-review.googlesource.com/339231
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
85dad304a61986ebeff63f749b5b307d152d74a5 27-Apr-2016 Ravi Chandra Sadineni <ravisadineni@chromium.org> Adjusting kb backlight based on ALS and Hover.

BUG=chromium:604959

CQ-DEPEND=CL:341504, CL:341497, CL:340640, CL:340990

TEST=ran test_that power_LoadTest on pixel2 and passed.

Change-Id: I0cf93abe047a256b6c69d5bf70cdf68ff33956a0
Reviewed-on: https://chromium-review.googlesource.com/340881
Commit-Ready: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Tested-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
4d4f45772fd8e708e019e31fc41f0cfa9d764919 21-Apr-2016 Todd Broch <tbroch@chromium.org> power_LoadTest: skip test for devices without batteries.

BUG=chromium:604793
TEST=run on test on chromebox and see if fail w/
TestNAError: Device designed without battery. Skipping test.

Change-Id: I7d92b6a8bbf661a9500d2790a9380a31804208ea
Reviewed-on: https://chromium-review.googlesource.com/340001
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
0d61ffb567a6d0e55c332b0ab1e05caf01000b77 23-Feb-2015 Eric Caruso <ejcaruso@chromium.org> power_LoadTest: log memory bandwidth

Dumps human-readable memory bandwidth logs into the .DEBUG file.
This might be useful for debugging power issues since these values
can act as a proxy for processor activity.

BUG=None
TEST=run power_LoadTest.fast with log_mem_bandwidth=True and inspect
DEBUG logs

Change-Id: Ibed423f4a8a582dd775723556c3b96f000bc535d
Reviewed-on: https://chromium-review.googlesource.com/252271
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d996e409a3debba138a3ed9523d6a2cad49b210a 05-Nov-2015 Todd Broch <tbroch@chromium.org> power_LoadTest: Increase wifi config timeout after failure to connect.

Runs in lab environment occasionally fail during final step,
configuration, when connecting to wifi. CL increasing the timeout for
configuration in hopes that AP just hasn't been given enough time to
complete that step. It also adds logging to expose timeout values and
failure string which is returned.

BUG=chromium:337028
TEST=pylint passes

Change-Id: I711783522451ac13aba227641695740d054a8129
Reviewed-on: https://chromium-review.googlesource.com/310986
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
deac9bc81f75261120c42458da2c26e08987117f 28-Oct-2015 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Open trap window for auto loaded tabs

There's a tab that opens on first login for Chromebooks for free offers.
Since every login for power_LoadTest is a first login (since the state is
cleared), open a window to catch that tab (and any others) which will be
closed by the test later.

BUG=None
TEST=run power_LoadTest.1hour
Check that there are only 5 tabs in the background window

Change-Id: I650f636e23435c4f8e9a26b09a39ef378cd94068
Reviewed-on: https://chromium-review.googlesource.com/309543
Commit-Ready: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
172ecb7f5a6bbda741799444237a9be4ee21518b 03-Jun-2015 Ed Baker <edward.baker@intel.com> Consolidate client downloads

Downloading files can be consolidated using file_utils. This is part of a
series of changes addressing client tests behind a proxy.

BUG=chromium:496264
TEST=`test_that ${DUT_IP} firmware_TouchMTB \
login_GaiaLogin \
platform_Crouton \
video_ChromeRTCHWDecodeUsed \
video_ChromeRTCHWEncodeUsed \
video_HangoutHardwarePerf.vp8 \
video_PlaybackPerf.vp8 \
video_VDAPerf \
video_VEAPerf.vp8 \
video_VideoEncodeAccelerator.vp8 \
video_WebRtcPerf`
TEST=`test_that ${DUT_IP} power_LoadTest`

Change-Id: I98e78dd063294dde5530e32154b2f98c1ebe9a9e
Reviewed-on: https://chromium-review.googlesource.com/275030
Commit-Ready: Edward Baker <edward.baker@intel.com>
Tested-by: Edward Baker <edward.baker@intel.com>
Reviewed-by: Rohit Makasana <rohitbm@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
fd456804cb8f90f43589f440e0a12c3a7fc7c9d4 30-Jul-2015 Derek Basehore <dbasehore@chromium.org> power_LoadTest: set extension params directly

This has the autotest set the extension params by executing JavaScript
through the python object. This fixes issues with & and + in urls for the
tasks list.

BUG=chromium:515240
TEST=run power_LoadTest

Change-Id: I1c8889fa67822e18d7c80f20b38ac5aaa0f94c6d
Reviewed-on: https://chromium-review.googlesource.com/289668
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
99c242a22b990e59cac306efa392a2f0f3215bc4 10-Apr-2015 Derek Basehore <dbasehore@chromium.org> Store powerloadtest password on chromium.org

This fetches the password for powerloadtest from chromium.org so it's simpler to
change the password (no merging back to many branches).

BUG=chrome-os-partner:38926
TEST=run power_LoadTest and login_GaiaLogin

Change-Id: I2756b9df26912a6d2bf0c7c99e0459f14b03344c
Reviewed-on: https://chromium-review.googlesource.com/265250
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
e26cce9fe237a268bff9208edf37fef353ce7f52 08-Apr-2015 Derek Basehore <dbasehore@chromium.org> Update power_LoadTest password

This updates the password for power_LoadTest and login_GaiaLogin

BUG=chromium:475198
TEST=run power_LoadTest and login_GaiaLogin

Change-Id: I70b1a6d64f666534ff3b8a8cc6897918707ba9f5
Reviewed-on: https://chromium-review.googlesource.com/264785
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
61b032031e418fece0430cf13bd84fff239ac603 23-Mar-2015 Eric Caruso <ejcaruso@chromium.org> power_LoadTest: only use powerlogger numbers for short runs

Charge numbers are accurate for full runs and less prone to battery
statistics being misreported, so we should use those if we're not
doing a one-hour run.

BUG=chromium:469812
TEST=run short power_LoadTest with 1 loop and 2 loops and check that
powerlogger is used for 1 loop, but charge is used for 2 loops

Change-Id: Ibfbae0597b21ba3ee8c3b6f8049254a08720b707
Reviewed-on: https://chromium-review.googlesource.com/261946
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
2633eef2994f6d798f2c22000c006063bee1ae85 18-Feb-2015 Eric Caruso <ejcaruso@chromium.org> power_LoadTest: improve battery life estimate with large voltage swings

Currently, battery life estimation occurs by taking the percentage
of full charge that discharged over the course of the run and using
that as a scaling factor. However, this means one-hour runs with a
high battery level will overshoot the actual battery life significantly,
since the voltage coming from the battery is high and thus the current
lower than normal at this point. Runs that occur with very low battery
may similarly have lower voltage and thus draw more current. This means
the battery life prediction is fairly useless for a one-hour run.

powerd estimates battery life differently, by taking the full charge and
multiplying by the design voltage to get the maximum energy stored, and
then dividing this by a moving average of power draw. This is a much
more accurate way to gauge battery life as experimentally found by
snanda@. However, the w_energy_rate and wh_energy_used keyvals are
calculated from the design voltage and the charge, meaning they are
subject to the same inaccuracy we are trying to avoid by using energy
instead of charge in the first place.

This CL calculates energy used from the power logger, which appears to
be much more accurate in gauging the power draw.

BUG=None
TEST=Ran PLT with full-ish battery, verified that estimates were +-5%
compared to calculations using external measurements of power draw

Change-Id: I572ebbb760e27ab18dd92d1cb7e7d72ba0a618e4
Reviewed-on: https://chromium-review.googlesource.com/250629
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
Trybot-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
1bc91d6b5e86fe30b2c1b6bb74262c57c1ec7e35 05-Jan-2015 Christopher Grant <cjgrant@google.com> Cut a tie between power_LoadTest and backchannel

power_LoadTest uses backchannel, but also made use of a questionable
backchannel utility function to check whether a network interface is up.
This is the only use of that utility function, and this is a step
towards removing the function from backchannel.

BUG=chrome-os-partner:35127
TEST=Being tested by test owners.
CQ-DEPEND=CL:236942

Change-Id: I812e4edb454216329d1e7b3242723d1d83167c2e
Reviewed-on: https://chromium-review.googlesource.com/238370
Trybot-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Christopher Grant <cjgrant@chromium.org>
Tested-by: Christopher Grant <cjgrant@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
c2e7bbbdc18d080e2eabd90fa158404961556087 15-Dec-2014 Eric Caruso <ejcaruso@chromium.org> power_LoadTest: fix test for boards without psr

If the board does not support PSR, we fail since we can't open the
PSR status file. Instead, we should just note the error and continue
as usual.

BUG=chromium:442125
TEST=test_that

Change-Id: I527a10b2331a8106fd610de5ea63061f8496fb44
Reviewed-on: https://chromium-review.googlesource.com/235802
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
Trybot-Ready: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
edfd5ba0e55670be04143d919b7d559b56a9bf35 12-Dec-2014 Eric Caruso <ejcaruso@chromium.org> power_LoadTest: add keyval for PSR residency

If the PSR performance counter exists, we can use it to track what
percentage of the test we spent in PSR. If this number is unusually
low, we may be drawing more power than necessary.

BUG=chromium:441514
TEST=test_that, check keyval against log readings

Change-Id: Ifdea795883655db4133e843fe1cfa25ca2501e9d
Reviewed-on: https://chromium-review.googlesource.com/234873
Trybot-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Eric Caruso <ejcaruso@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
225dd2cccba21b0a9ebd40404a6630704a243d82 25-Sep-2014 Todd Broch <tbroch@chromium.org> power_LoadTest: Bump password.

BUG=chrome-os-partner:29849
TEST=manual, login to account.

Change-Id: I44a58867689a811c00380845b43840bb9569fb1f
Reviewed-on: https://chromium-review.googlesource.com/219991
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
41acbf89080501db1b554c6919e1e0b3593585ff 12-Jul-2014 Derek Basehore <dbasehore@chromium.org> Add close method for Chrome

This adds a close method for the Chrome class and calls it during cleanup in
power_LoadTest. This makes power_LoadTest close Chrome when it finishes.

BUG=chromium:393027
TEST=run power_LoadTest

Change-Id: Ic3511a3c1908040a5b90e99645980b4bd35a9a68
Reviewed-on: https://chromium-review.googlesource.com/207688
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
95a4581239a1ab8cfabae0e50de7d6743fb71a61 23-Jun-2014 Todd Broch <tbroch@chromium.org> power_LoadTest: Bump pswd.

BUG=chrome-os-partner:29849
TEST=manual, login to account.

Change-Id: Ic3366c4c78d1e11b3278653b992d242efc5eea88
Reviewed-on: https://chromium-review.googlesource.com/204979
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
5cfd7fab4966bf402c4073a41707c31b26cb8c5f 13-Jun-2014 Achuith Bhandarkar <achuith@chromium.org> Minor cleanup of power_LoadTest.

Remove creds.
Remove unused cros_ui methods.

BUG=None
TEST=power_LoadTest

Change-Id: Ic67d1b0a1e3b10db2b52dda78ea26a0238038b02
Reviewed-on: https://chromium-review.googlesource.com/203654
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Achuith Bhandarkar <achuith@chromium.org>
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
a8d49fffc08e05a5cccaa5821c84bd4ca86768a8 03-Jun-2014 Todd Broch <tbroch@chromium.org> Add separator for ext_ keyvals to discern loop data better.

BUG=chromium:373848
TEST=run power_LoadTest (two loops)

See ext_ keyvals with '_'

ext_audio_failed_loads{perf}=0_0
ext_audio_successful_loads{perf}=1_1
ext_docs_failed_loads{perf}=0_0
ext_docs_successful_loads{perf}=5_5
ext_email_failed_loads{perf}=0_0
ext_email_successful_loads{perf}=3_3
ext_status{perf}=good_good
ext_web_failed_loads{perf}=0_0
ext_web_successful_loads{perf}=28_29

Change-Id: I9911015f52611f22a14d98c80949d560ef1fb68c
Reviewed-on: https://chromium-review.googlesource.com/202452
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d16f1daab3a354b637065b99dbc31809ce5674dd 02-Jun-2014 Alex Miller <milleral@chromium.org> Move service_stopper to initialize and cleanup for power tests.

TEST=None
BUG=None

Change-Id: I61ab4493c689a0249503de03963e97d649e71dce
Reviewed-on: https://chromium-review.googlesource.com/202344
Tested-by: Alex Miller <milleral@chromium.org>
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
04be2bd5e4666a5c253e9c30ab20555e04286032 08-May-2014 Ilja H. Friedel <ihf@chromium.org> Autotest: Change logging.warn() to logging.warning().

logging.warn() is deprecated. See
http://bugs.python.org/issue13235

Substitution was performed via
~/cros/src/third_party/autotest/files$ find ./ -type f | xargs sed -i 's/logging.warn(/logging.warning(/'

BUG=None.
TEST=There should be one-- and preferably only one --obvious way to do it.

Change-Id: Ie5665743121a49f7fbd5d1f47896a7c65e87e489
Reviewed-on: https://chromium-review.googlesource.com/198793
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
664bad8943c04684b1181e53dc0e58d598733c55 06-May-2014 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Work around extension loading twice

This works around Chrome loading the extension for OOBE and after login by
making the extension not automatically start on load. The icon can still be
clicked to start the extension though.

Instead, this relies on power_LoadTest.py to start the test by executing a
javascript function for the extension.

BUG=chrome-os-partner:27981
TEST=run power_LoadTest
check that only one set of windows opens

Change-Id: Ib10ce757b3fdabca4604f148374f80993fc34e85
Reviewed-on: https://chromium-review.googlesource.com/198278
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
19b22d991c000510e91aca1b7bce6c57b9a63a15 01-May-2014 Todd Broch <tbroch@chromium.org> Don't try to publish minutes_battery_life keyval unless it exists.

This commit,
87445df power_LoadTest: Add perf reporting
Added reporting of minutes_battery_life to perf while this commit,
3932cc3 power_LoadTest: Allow running on AC.

Made it possible to no longer have battery discharge and therefore not
calculate minutes_battery_life keyval.

Auto-merge introduced bug which this now fixes.

BUG=none
TEST=run power_LoadTest on AC and it finishes successfully without
throwing error Unhandled KeyError: 'minutes_battery_life'

Change-Id: I1e4dbc2933de2b39981e30447e58ca4167a6bc14
Reviewed-on: https://chromium-review.googlesource.com/197782
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
3932cc39076c41847e4b8201abb225528b4b815e 23-Apr-2014 Todd Broch <tbroch@chromium.org> power_LoadTest: Allow running on AC.

Test is useful benchmark regardless of whether determining battery
life so allow it to be run if AC is connected.

Change adds keyval 'on_ac' and qualifies battery life calculations to
avoid div-by-zero errors to enable/identify this mode.

BUG=none
TEST=run power_LoadTest
1. with ac_ok=True for init
- Test passes, b_ac_on == True
2. with ac_ok=False for init
- Test fails with message '
ERROR: Running on AC power. Please remove AC power cable.

Change-Id: If38f8a52063deed036703494403447fbac05953e
Reviewed-on: https://chromium-review.googlesource.com/196524
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
87445df0c3a04de57e214267d5131e37148c76e4 19-Apr-2014 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Add perf reporting

This just reports the estimated battery life for the end of the 1 hour test
from the lab.

BUG=chromium:304723
TEST=power_LoadTest

Change-Id: I494642aa450316435ff911099b3029269a14545c
Reviewed-on: https://chromium-review.googlesource.com/195703
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
0ecaa5c74b6943368ba80cedca2259931f51426a 03-Apr-2014 Derek Basehore <dbasehore@chromium.org> Move power_LoadTest over to Telemetry

This moves power_LoadTest over to Telemetry from PyAuto. Telemetry will use a
full screen window if it is the default for your window size, where PyAuto did
not. This should not result in a major difference in power though.

TEST=power_LoadTest
BUG=chromium:337029

Change-Id: I1bfc996439c1c8ad1b467539fb51e49346e70b7d
Reviewed-on: https://chromium-review.googlesource.com/193054
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
fd4caad0dadc545b7458c16c2340fecfbfd1fe40 24-Mar-2014 Todd Broch <tbroch@chromium.org> power_LoadTest: fixup extension status reporting.

Re-locate the http server code to gather extension statistics for
reporting them to results such that extension is active.

Also removed manual xsetting that appears to no longer be necessary.

BUG=chromium:305892
TEST=run power_LoadTest with loop_time=300, loop=1 and it looks
correct and publishes extension status to keyval as:

ext_audio_failed_loads{perf}=0
ext_audio_successful_loads{perf}=1
ext_docs_failed_loads{perf}=0
ext_docs_successful_loads{perf}=6
ext_email_failed_loads{perf}=0
ext_email_successful_loads{perf}=3
ext_status{perf}=good
ext_web_failed_loads{perf}=0
ext_web_successful_loads{perf}=36

Change-Id: Ieed3ad5263545fe63a428c3a7ca5c41d26080e87
Reviewed-on: https://chromium-review.googlesource.com/191280
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
1ce77c09e27cd4dbd0cfbdb5b72e494d850961d5 21-Feb-2014 Sameer Nanda <snanda@chromium.org> power_LoadTest: update credentials

Update credentials to match new account settings.

BUG=none
TEST=run power_LoadTest and verify that it is able to log in
successfully as part of the test run.

Change-Id: If14af7f5ed6228e5240b3f34bd2d856874297b52
Reviewed-on: https://chromium-review.googlesource.com/187388
Reviewed-by: Bryan Freed <bfreed@chromium.org>
Commit-Queue: Sameer Nanda <snanda@chromium.org>
Tested-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
f10a3198906c17a539c830e1263e6efb0a3db7b2 11-Jan-2014 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Forget wifi AP at the end of the test

In the case that we force a connection to a wifi AP, forget all wifi connections
at the beginning and end of the test. This is intended to help reduce wifi
congestion in the test lab.

BUG=chromium:297830
TEST=run power_daily suite in the lab

Change-Id: I259e9c9abfda889196370f2f70605d7ec2d76ef3
Reviewed-on: https://chromium-review.googlesource.com/182185
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
1f89fd2f9f2010e732a87ed3c8f7f25777862c59 20-Dec-2013 Christopher Wiley <wiley@chromium.org> autotest: Migrate shill_proxy and dependencies to autotest

These files were installed as part of the shill test scripts when
the autotest client package was not installed in test images. Now that
the client package is installed at build time, we should move these
scripts into autotest.

The moved files were cut at 2b79b706f3d16f6f26dc29afd94b8a3dbf1d27e2
from the shill repository.

BUG=chromium:328169
TEST=WiFi tests (wifi_matfunc/network_nightly) still pass with these
changes. grepping for instances of '^import .*_proxy' and '^import
shill_context' returns no hits in autotest.

CQ-DEPEND=CL:181271
Change-Id: Ieb864f265fd9a6adee0863ec0e56969f3c389e43
Reviewed-on: https://chromium-review.googlesource.com/181360
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d7a0f395cd6a36c4f86a88e2bce3b6a6319fbdc8 19-Dec-2013 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Change wifi connection timeout to 60 sec

We often timeout during wifi configuration, so change the timeout from 15
seconds to 60 seconds.

BUG=chromium:297830
TEST=run power_daily suite in the lab

Change-Id: I529a11533ac6f3733f93b63c01b7953b92cf6442
Reviewed-on: https://chromium-review.googlesource.com/180853
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
a5b3a27862f43e060f9823dd60fa0be18a348862 20-Dec-2013 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Fix up docstring for initialize method:

This adds missing arguments to the documentation and removes unused arguments.

BUG=None
TEST=None

Change-Id: I525961cc590aee6c12a88dd905632034dba6166e
Reviewed-on: https://chromium-review.googlesource.com/181050
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
ccc390b2d0087b860cecd8086ea25a2326ffa144 11-Dec-2013 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Move to WifiProxy test module

The flimflam test module will soon be depricated, so we need to move over to
wifi proxy. We also need to do this before we can diagnose the issues with
connecting to wifi in the lab.

BUG=chromium:325498
TEST=test power_LoadTest manually and in the lab

Change-Id: I35fb14e3336f3eea457b9391eff8f69a76759d5e
Reviewed-on: https://chromium-review.googlesource.com/179532
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
59405505bdf7284425645edc162436fd89fb6d51 03-Dec-2013 Derek Basehore <dbasehore@chromium.org> Revert "autotest: Migrate power_LoadTest to WifiProxy" and import new path

There is an issue with the wifi_config object getting serialized, so I'm
reverting this while I rewrite the change. The old import statement for
flimflam is now broken. This imports the test path for flimflam to fix that.

BUG=chromium:322383
TEST=run power_daily suite in the lab

This reverts commit 08d2ef629684a3269bb4d7ea16d05e175c47cbe4.

Change-Id: I92cc969066574ad0018e5f46b355a1191fa6ae56
Reviewed-on: https://chromium-review.googlesource.com/178549
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
08d2ef629684a3269bb4d7ea16d05e175c47cbe4 26-Nov-2013 Christopher Wiley <wiley@chromium.org> autotest: Migrate power_LoadTest to WifiProxy

Something changed with the flimflam test module, so just migrate over to
shill_proxy to fix the problem since the flimflam test module is depreciated.

BUG=chromium:322383
TEST=manual and check if power_LoadTest still fails when run in the lab

Change-Id: I7d72eb50fc7aa1e954d1a464fe9d59772ede6f58
Reviewed-on: https://chromium-review.googlesource.com/178092
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
145cb75b5c33f590ddcb9421e8b3c3fbeae7117f 21-Nov-2013 Todd Broch <tbroch@chromium.org> Add few percent margin for low battery to avoid shutdown

Presently if power_LoadTest is run on system in which powerd's battery shutdown
level (sys_low_batt_p) is greater than the test run's low battery setting
(test_low_batt_p) then there's no margin.

This exposes know race between:

1. test ending
2. powerd forcing low battery shutdown
3. control file re-enabling AC

This change builds a default margin of 2% in order to avoid the race.

In addition it fixes a bug introduced by
be3c3e70 : Enhance temperature capture capabilities.

in which I inadvertently commented out the check to make sure power_LoadTest is
run on battery.

Finally, cleaned up a few pylint failures so repo's verify hooks were happy.

BUG=chrome-os-partner:24173
TEST=run power_LoadTest w/ custom control file w/ low_batt_margin_p and see:
1. this log message
11/20 15:24:57.747 WARNI|power_Load:0164| test low battery threshold is
below system low battery requirement. Setting to 96.500000

2. preempt execution correctly.
11/20 15:26:21.085 INFO |power_Load:0230| Exiting due to low battery

3. Metrics make sense despite abbreviated run
minutes_battery_life_tested{perf}=1.02375861804
minutes_battery_life{perf}=177.826871953
ah_charge_full_design{perf}=2.7
ah_charge_used{perf}=0.015
percent_sys_low_battery{perf}=3.5

(2.7 / 0.015) * ((100 - 3.5) / 100) * 1.023 = 177.8min

Change-Id: I326f0dec5896c7fed5f95ae64c008b644b108364
Reviewed-on: https://chromium-review.googlesource.com/177471
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
be3c3e70c41e5e28a88dad5b7062dd9baf6af091 24-Sep-2013 Todd Broch <tbroch@chromium.org> Enhance temperature capture capabilities.

This CL aims to increase visibility into temperature readings on CrOS
devices by:

1. Having SysStat object sample ACPI & hwmon temperatures. Note,
these may actually be the same sensor in some cases.

2. Create TempLogger object to sample temperatures in parallel.

This new functionality is enumerated in power_Status as a simple
example of the functionality.

I also cleaned up some pylint failures in power_status.py

BUG=chrome-os-partner:22776
TEST=run power_Status, power_Idle, power_Draw & power_LoadTest on Spring.

See temp result ... for example on power_Status:
1. Both ACPI & hwmon temps from SysStat

11:09:34 INFO | Temperature reading: g781_temp1_input:36000 \
g781_temp2_input:35625 exynos-therm_temp1_input:45000 temp:45000

2a. See TempLogger keyvals captured,
11:09:40 INFO | exynos-therm-t1_duration: 3.04606986046
11:09:40 INFO | exynos-therm-t1_temp: 44.5
11:09:40 INFO | exynos-therm-t1_temp_cnt: 2
11:09:40 INFO | exynos-therm-t1_temp_max: 45.0
11:09:40 INFO | exynos-therm-t1_temp_min: 44.0
11:09:40 INFO | exynos-therm-t1_temp_std: 0.5

2b. See output files in resultdir,
ls -l /usr/local//autotest/results/default/power_Status/results/
-rw-r--r-- 1 root root 50 Sep 24 11:09 power_results_1380046180.txt
-rw-r--r-- 1 root root 173 Sep 24 11:09 temp_results_1380046180.txt
Change-Id: I80d85d9d9b85b8e4277f5eefa4ff44873bb4f089
Reviewed-on: https://chromium-review.googlesource.com/170349
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
6597273abc070f752cd1d57a88556b5f98d96934 24-Sep-2013 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Initialize _services to None

When there's a failure in the initialize function or the beginning of run_once,
an exception will be thrown in the cleanup function when we try to access the
_services member. This is because the _services member has not been added to the
class instance yet, so an unhandled exception is thrown. Initializing _services
to None fixes this. This will help debug whatever issue was causing initialize
or run_once to fail.

BUG=chromium:297830
TEST=run power_LoadTest (just check that it starts running)

Change-Id: I1e93ba4a6e9681a30464209bc34e2251253762e0
Reviewed-on: https://chromium-review.googlesource.com/170530
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
69324998af43b8992df694370a8536bad2da2f9c 11-Sep-2013 Todd Broch <tbroch@chromium.org> Refactor power_LoadTest to use Statomatic.

Statomatic consolidates all the AbstractStats instances (usb, cpufreq,
cpuidle, gpufreq) into one to simplify stat gathering.

This CL incorporates that single instance into power_LoadTest. In
addition it add DiskStateLogger stats to Statomatic.

BUG=chromium:286088
TEST=run power_LoadTest ... get same keys + GPU freq stats in
keyvals. Also re-ran power_Idle to make sure things went smoothly
with addition of DiskStateLogger.

Change-Id: I4f91a5f3dbc7ad88a204e684c7da5421cc06d9d1
Reviewed-on: https://chromium-review.googlesource.com/168840
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
30561af7cc67403c50ba09f5a14258e1c34e3006 06-Sep-2013 Hsin-Yu Chao <hychao@chromium.org> audio_helper: Move functions to module level

Some utility functions have no need to be a member function
of AudioHelper class. Move them to module level.

This change is just a clean up, no change to the behavior of
modified tests.

BUG=chrome-os-partner:21686
TEST=Manual verify all modified tests.

Change-Id: I6644bab4f6019815fa4978fed663d68f31c9921a
Reviewed-on: https://chromium-review.googlesource.com/168428
Reviewed-by: Chun-ta Lin <itspeter@google.com>
Reviewed-by: Heng-ruey Hsu <henryhsu@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d2364586c1c749a08395e89f28307bbfaf045801 28-Aug-2013 Sameer Nanda <snanda@chromium.org> power_LoadTest: change battery_life_scale calculation

The battery_life_scale calculation was scaling the battery life based on
voltage_mean. However, voltage_mean will always be higher than the
voltage_min_design that is used for calculating the design battery
capacity in Wh. This was causing the battery_life_scale to be
under-reported by 1-2%.

BUG=none
TEST=run either a 1 hour or full battery load power_LoadTest cycle and
verify that the minutes_battery_life is scaled appropriately from
minutes_battery_life_tested.

Change-Id: I6e24df8017797f15e03de77092ef1e5192107819
Reviewed-on: https://chromium-review.googlesource.com/167321
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
e0b31b74b05985612c6c6e9d8e4ce56b8aedb45b 10-Aug-2013 Derek Basehore <dbasehore@chromium.org> power_LoadTest: Make background tab last 70 minutes

We're running into errors when we try to uninstall or install the power_LoadTest
extension. It seems like we're running into a race condition between windows
closing and uninstalling/installing the extension. To work around this, make the
background window last 70 minutes instead of 60. This will ensure there is a
window to perform the uninstall of the extension on. Because of this, we don't
need to have power_LoadTest open a window at the end of the loop.

BUG=chrome-os-partner:21526
TEST=Full run of power_LoadTest

Change-Id: I51cf9d6741f9cfbc19ab6468305db2cd0fea794b
Reviewed-on: https://gerrit.chromium.org/gerrit/65433
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b7737d164f2fe9bfe5bb5c5e1c6513e0ebe3d3e5 23-Jul-2013 Doug Anderson <dianders@chromium.org> power_LoadTest: Don't consider UninstallExtensionById errors fatal

These errors seem to crop up sometimes right at the end of the test.
They don't seem to hurt, so turn them into a warning.

BUG=chrome-os-partner:18324
TEST=Put a time.sleep(15) before UninstallExtensionById() and see the
warning. Test seems fine.

Change-Id: I73be4bf78483de383fd5e1a3da7d4f35cefcb509
Reviewed-on: https://gerrit.chromium.org/gerrit/62995
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
4704245856077879f8918bffb63d667996c7d599 23-Jul-2013 Derek Basehore <dbasehore@chromium.org> Always open new Chrome window at end of loop

There's a race condition where we check if there are any Chrome windows open
then uninstall the power_LoadTest extension. The race happens when there is a
window open when we check if there are any windows open, but it closes before we
uninstall the extension. The exception produced by this causes the test to fail
and prevent the results from being recorded.

BUG=chrome-os-partner:18324
TEST=Put sleep(30) between opening window and uninstalling extension. Make sure
exception is not thrown. When running power_LoadTest

Change-Id: Icf35a5adba7f088aa32685bc4f3c0d4935a27ac6
Reviewed-on: https://gerrit.chromium.org/gerrit/63146
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Derek Basehore <dbasehore@chromium.org>
Tested-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
e989af49bca2dd18c3ff83d151e23436acfde0ba 08-May-2013 Bryan Freed <bfreed@chromium.org> power_LoadTest: Use a different account to get gmail and docs working.

Set the default credentials to use the power.loadtest Google account.
Point the Docs urls at a couple appropriate documents in that account.
Generate a new extension.crx as per README.txt.

BUG=chromium:238503
TEST=Manually verify Gmail and Docs work when this test runs.
./run_remote_tests power_LoadTest/control.1hour to install the test.
This fails because ethernet is attached. Remove ethernet and power, then:
$ cd /usr/local/autotest
$ bin/autotest tests/power_LoadTest/control.1hour
Verify that gmail is viewed between minutes 36-48, then docs are viewed
between minutes 48-54.

Change-Id: If3379aeac0527a1317fe6ec6f4c4705bc4104577
Reviewed-on: https://gerrit.chromium.org/gerrit/50846
Reviewed-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Queue: Bryan Freed <bfreed@chromium.org>
Tested-by: Bryan Freed <bfreed@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
2ea62250aa5ee9d9960c9f65a9501da6fd53ca8a 02-Apr-2013 Todd Broch <tbroch@chromium.org> power_LoadTest: Add PowerLogger (system, RAPL) measurements.

CL adds PowerLogger thread which samples system power and if platform
(x86 >= sandybridge) provides it, RAPL measurements every 20 seconds.

That data is summarized for each loop in keyvals as well as a text
file in the results dir.

Future CL may consider deprecating the existing system measurements in
test as there's some redundancy there.

BUG=none
TEST=run test on Lumpy successfully. See results files and new
keyvals.

Change-Id: I2d00196b5a2f5a482d11cb240ae5c2053dfac48b
Reviewed-on: https://gerrit.chromium.org/gerrit/47159
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
187240b15fe210be911c5dfc2a414d0780d9be7d 02-Apr-2013 Todd Broch <tbroch@chromium.org> power_LoadTest: Use ServiceStopper class to disable some services.

BUG=none
TEST=run power_LoadTest

Change-Id: I9860e8b0cc936c48b0495693676a2dc02ce7611e
Reviewed-on: https://gerrit.chromium.org/gerrit/47158
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
89eac623d9dedbcc2df3c97aac4c0c0951b217c1 18-Dec-2012 Todd Broch <tbroch@chromium.org> client/site_tests: power_LoadTest: Bugfix for energy/current rate.

In the case where test is not run to completely drain battery,
minutes_battery_life can't be used to determine the energy/current
rate. CL corrects by using minutes_battery_life_tested instead.

BUG=none
TEST=run test see proper calculation for energy rate & current rate
Change-Id: I72d302f28353b8ac627b5356460c1227cd04b54e
Reviewed-on: https://gerrit.chromium.org/gerrit/39851
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
af5de98643110a67a9f5c323dd56be3eb1e35448 28-Nov-2012 Todd Broch <tbroch@chromium.org> client/site_tests: power: Refactor backlight control & service management

This CL primarily refactors client side tests:
hardware_Backlight
power_Backlight
power_BacklightControl
power_Idle
power_LoadTest

Changes typically involve:
1. Replace direct calls to backlight-tool with power_utils:Backlight
instance.
2. Replace direct calls to upstart (start/stop) with
power_utils:ManageServices
3. Where applicable, enhance cleanup method to restore device to
pre-test conditions for both backlight & services

Other minor changes include:
1. Updates to power_utils:Backlight to raise test failures when
failing to communicate using backlight-tool
2. Change power_Consumption to restore original backlight not set
default in cleanup
3. Have power_Idle set backlight to default explicitly.
4. power_Backlight checks for >= 5% battery remaining.

Finally, there are a few pylint fixes sprinkled within.

BUG=chromium-os:36382
TEST=run tests still pass

Change-Id: Ia150e82e859eba5e0eb05994b4f1c731f23e8f84
Reviewed-on: https://gerrit.chromium.org/gerrit/38819
Reviewed-by: Mark Koudritsky <kamrik@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
ee79b397f23b6fd21a668b24264ce4c331d4d129 16-Nov-2012 Todd Broch <tbroch@chromium.org> client/site_tests: power_LoadTest: minutes_battery_life bugfix.

Missing set of parens in minutes_battery_life extrapolation causing
~100x calculation. Fixed this and a few other things discovered when
pylinting.

BUG=none
TEST=run brief version of test on platform that previously had 100x
multiplier and its now fixed.

Change-Id: Ic240eba98c7fe916cb797c64203b461347f7e0e2
Reviewed-on: https://gerrit.chromium.org/gerrit/38214
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b549b07e38a599cab770498c9e0e7a89f5eb5b86 15-Nov-2012 Todd Broch <tbroch@chromium.org> client/site_tests: power_LoadTest logging bugfix for low battery.

BUG=none
TEST=none

Change-Id: I53a1718f3b254d7fd09a9b0ca8db616ee8977453
Reviewed-on: https://gerrit.chromium.org/gerrit/38131
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
2383236d7d06cef4497ab7d71bf93b45ba71b557 13-Nov-2012 Todd Broch <tbroch@chromium.org> power_LoadTest: Use super to inherit attributes from cros_ui_test.

Currently on some failure paths some attributes (self._log_reader) are
undefined. This causes additional failures such as:

11/12 23:41:24.653 ERROR| traceback:0013| AttributeError:
'power_LoadTest' object has no attribute '_log_reader'

CL fixes that by correctly calling super to inherit these attributes
from cros_ui_test base class.

BUG=none
TEST=run power_LoadTest successfully.

Change-Id: I398482b784a06b46e20784e03fdc02d2e04d6d3b
Reviewed-on: https://gerrit.chromium.org/gerrit/37911
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
21978453eaa14e284560915268cf9cb1b4604a48 03-Nov-2012 Todd Broch <tbroch@chromium.org> autotest: Extrapolate minutes_battery_life for power_LoadTest.

In its current form power_LoadTest reports minutes_battery_life as the
number of minutes the battery lasted running the multiple iterations
of the 1 hour 60/20/10/10 payload.

While performing the test over the fully charged to fully discharged
battery is vital as what real world use will be it makes it hard to
get the results due to long runtime. Additonally even over the full
discharge there are small inaccuracies depending upon how charged the
battery was or what level we allowed it to discharge to that are
currently not accounted for.

This change extrapolates the minutes_battery_life_tested by applying
the following equation:

minutes_battery_life = minutes_battery_life_tested * scale -
low_battery_seconds
scale = (wh_energy_full_design / wh_energy_used) * usable_battery
usable_battery = (1 - low_battery_percent)

Where:
wh_energy_used = ah_charge_used * MEAN(v_voltage)
low_battery_percent & low_battery_seconds are values determined by
power manager. Note, only one will be non-zero.

This change should fix / allow the following:
1. More accurate battery_life estimates over the life of a battery.
A fresh battery that can be overcharged will not benefit nor will a
tired battery penalize the results.
2. Runs < full drain. As such I'm adding a control file for 1 hour
run with plan to add it to nightly

BUG=chromium-os:35824
TEST=run test for 1hr using control.1hour
Change-Id: I24eb65a93d9b1a8ed79103e9ab623f0ce22269c9
Reviewed-on: https://gerrit.chromium.org/gerrit/37318
Commit-Ready: Todd Broch <tbroch@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
bec9d2222be708f7d03ab0d625f15dcb9c142ed3 23-Oct-2012 Julius Werner <jwerner@chromium.org> Add CPU package C-state measurements to power_LoadTest

Modern Intel CPUs can put their whole package into a power-saving
C-state when all individual cores are idle. This patch reads the amount
of TSC ticks the package spends in each of those states from MSRs on
supporting platforms and converts them to percentage values which are
added to power_LoadTest's output.

BUG=chromium-os:35117
TEST=Run power_LoadTest on a lumpy or link. Check for
percent_cpupkg_C?_time values in its output.

Change-Id: Iaff4b09f8c373da56ec677eee36b83e6ad6d9ae9
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36370
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
698956153242dfb51ebdaadef4317749c7fc4be0 30-Oct-2012 Todd Broch <tbroch@chromium.org> autotest: Set lightbar default.

BUG=chrome-os-partner:15055
TEST=run test on system w/ & w/o lightbar functionality.

Change-Id: I85e485db88ce4145d462f857b069341714ddfaed
Reviewed-on: https://gerrit.chromium.org/gerrit/36932
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
05c4b5d1b1417c4e38f184416b0d0ede23cd4e0a 30-Oct-2012 Todd Broch <tbroch@chromium.org> autotest: Set default audio volume & mic levels via cras.

BUG=none
TEST=manual,
1. Start power_LoadTest
2. After its logged in and cycling web pages goto ssh-in-shell (ctrl-alt-t)
3. get to shell as root
4. type 'cras_test_client --dump_server_info | grep -i vol'
Should see:
System Volume (0-100): 10

Change-Id: I212ebb7dfd3f5784a1c2e2f87db62262863e06b1
Reviewed-on: https://gerrit.chromium.org/gerrit/36918
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
2f156e8967fab4b4ffe38cd727aaeabf5e4080f6 20-Oct-2012 Todd Broch <tbroch@chromium.org> autotest: Set keyboard backlight settings if applicable.

BUG=chrome-os-partner:15055
TEST=run test on system w/ & w/o keyboard backlight.

Change-Id: If2c69d341fee03091e2edc26a1a5040eabe9e06e
Reviewed-on: https://gerrit.chromium.org/gerrit/36907
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Simon Que <sque@chromium.org>
Commit-Ready: Todd Broch <tbroch@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
4ae320f5b4afd9c047dfa446d76722100c03665b 24-Oct-2012 Julius Werner <jwerner@chromium.org> Refactor power testing library

This is a refactoring patch trying to deduplicate code between the
several similar state-residency-over-time statistics classes in
cros/power_status.py. It moves as much functionality as possible into a
common superclass. Except for minor formatting changes to
power_LoadTest's output, it does not introduce any functional changes.

BUG=none
TEST=Run power tests on all platforms and compare results to prior
values to ensure they are still as stable and accurate as before.

Change-Id: I0b55b6967e5af1acb0ab13812e4706204ed6999f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36609
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
804448c0ab08762d4298716bb1a90831717e5ba7 24-Oct-2012 Julius Werner <jwerner@chromium.org> Revert "Increase power_LoadTest WiFi connection retries"

This reverts commit f17380a078c60f294036d485ae345e66e95887b5.

This improved nothing, so I had another look at it. Seems that the line
"Associating..." we can see in all the logs (even those that fail)
proves that the "Connect" step of the setup went through successfully --
and that is the only one affected by this retry number. Also, it would
add a log message on every failed retry, which I have never seen, so
this usually seems to work on the first try and three retries should
really be enough.

Sorry for missing that in the first place... reverted this and removed
the comment that led me in this direction in the first place (seems to
be no longer valid). Will keep on looking for the problem, but whatever
it is, this was not it.

BUG=chromium-os:35120
TEST=none

Change-Id: I4aacf9bafb441c3dd20cb2039471f22a678e0b69
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36472
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
f17380a078c60f294036d485ae345e66e95887b5 08-Oct-2012 Julius Werner <jwerner@chromium.org> Increase power_LoadTest WiFi connection retries

The vast majority of power_LoadTest runs in the lab currently fail due
to WiFi issues. The corresponding setup code contains a comment hinting
that the WiFi connection manager is known to be flaky, and that the
current amount of retries might not be sufficient. This change raises
said amount from 3 to 8 hoping to improve the test's stability in the
lab.

BUG=chromium-os:35120
TEST=Run power_LoadTest manually to ensure that the test still performs
as expected. Long-term success of this change can only be dertermined
after it has been submitted and deployed in the lab for a few weeks.

Change-Id: I707a1f63f9c099e7ee0225ed64958f1cc64dfd2b
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34944
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
c4133d233aa092c4cb9d6e399baaad4eaa16d187 03-Oct-2012 Julius Werner <jwerner@chromium.org> Add disk power state logging to power_LoadTest

Adds a new class to the power_status module that periodically polls disk
power state (through raw ioctls from within Python) and records the
seconds the disk is in each state. This feature is then added as a
reporting value to the results of power_LoadTest.

BUG=chromium-os:34443
TEST=manually ran power_LoadTest on a lumpy

Change-Id: I623073ef7922d668f6ddf781b09eeffe6c70ee5f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34527
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b55127d7cb78888e43f96a232feda409abcab1e9 14-Sep-2012 Nirnimesh <nirnimesh@chromium.org> [autotest] Simplify power_LoadTest

Login only once so as to reduce dependence on it.
Get rid of the external_extension.json hack. Install the extension
will automatically fire it up.

BUG=None
TEST=None

Change-Id: I88772b1030c39935bcc6cec1e1ca20dcad40d6a2
Reviewed-on: https://gerrit.chromium.org/gerrit/33251
Reviewed-by: Simon Que <sque@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
bc1c98747adc2bcb9c0a7d130a3188f2f424aaff 07-Sep-2012 Nirnimesh <nirnimesh@chromium.org> [autotest] Apply re-login hack to power_LoadTest

BUG=chromium-os:139166
TEST=power_LoadTest

Change-Id: I039e1192a5db7e576cb975441a3af71bdaa173d5
Reviewed-on: https://gerrit.chromium.org/gerrit/32598
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Ready: Nirnimesh <nirnimesh@chromium.org>
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Tested-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b312dcf7a07ffdfe5a9625bbb1b5b08e81158b39 22-May-2012 Jason Glasgow <jglasgow@chromium.org> backchannel: fix semantics, auto discover interface

Context objects are supposed to do all the "work" during the call to
__enter__ not during the __init__ function. Fix Backchannel so that
backchannel is established during the __enter__ function.

Change backchannel so that the context object no longer takes an
interface as an argument, but rather figures out the interface based
on the default route.

Fix up any tests that used the old backchannel interfaces.

BUG=none
TEST=network_3GActivate, network_3GFailedConnect, power_LoadTest

Change-Id: I82c7b62a9394b03986ed3b95c9d38aec5bde5a0f
Reviewed-on: https://gerrit.chromium.org/gerrit/23384
Reviewed-by: Jason Glasgow <jglasgow@chromium.org>
Tested-by: Jason Glasgow <jglasgow@chromium.org>
Commit-Ready: Jason Glasgow <jglasgow@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
2e56d3461849c3066023f0f6e9e9060523d72d30 11-May-2012 Mike Truty <truty@chromium.org> Revert early termination of workload browser to get workload stats again.

Recently introduced a cl to hard-tear-down browser/sessions just before a
single loop of workload completed. As a result, no longer getting workload
stats. This prevented attempts to use a pyauto interface that was removed
by aura when the workload completed.

Recent fix should enable pyauto-test interface to remain active after
workload completes.

BUG=chromium-os:30743
TEST=local run_remote_tests.sh

Change-Id: Ie99e0735686802cce57152ad68765afcbbac24af
Reviewed-on: https://gerrit.chromium.org/gerrit/22472
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Mike Truty <truty@chromium.org>
Tested-by: Mike Truty <truty@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
650be6d5f895abe5fd9fbca4cf242bdf92443c62 04-May-2012 Mike Truty <truty@chromium.org> Work around to avoid disappearing PyAuto-Chrome interface.

Calls to check login status fail after an extensison
workload has completed. This forces the login calls
to occur before the workload has completed. At that time
the interface has not been inexplicably torn down.

BUG=chromium:124133
TEST=./run_remote_tests.sh --use_emerged client/site_tests/power_LoadTest/control

Change-Id: Ied0e53da4c417697e53363abd6822dd592b43d98
Reviewed-on: https://gerrit.chromium.org/gerrit/21859
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Commit-Ready: Mike Truty <truty@chromium.org>
Tested-by: Mike Truty <truty@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
cfa1ddf94edc7ac518a178415ec4a7c9a61a9dd6 30-Nov-2011 Todd Broch <tbroch@chromium.org> autotest: power_Standby: Create test to measure standby (S3) power.

Test measures the power consumed while the device is in standby (S3)
by suspending the device and using the RTC to wake the device later.
It then calculates the average milliwatts consumed during the period
as well as extrapolates the number of hours/days a fully charged
device would last.

Test MUST be run on battery with at least 20% of its battery charged.
Test checks that:

1. DUT on battery. Required due to measurement restriction of
/sys/power_supply and thats when suspend power consumption is most
applicable.
2. Suspend time actual matches suspend time requested.

BUG=chromium-os:21785
TEST=run test via run_remote_tests.sh with,

power_Standby -a "standby_hours=0.2 sleep_hours=0.1"
power_Standby -a "standby_hours=1"
power_Standby

Change-Id: I0b0cb96e66a68a744a1308cc6b6eb753cc1b2986
Reviewed-on: https://gerrit.chromium.org/gerrit/17806
Commit-Ready: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Reviewed-by: Mark Koudritsky <kamrik@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d73c2565c6d2756c52c793808455fd8b685b910e 09-Nov-2011 Scott James Remnant <keybuk@chromium.org> Revert "site_test: pass unknown initialize arguments to super"

This reverts commit 89b43fb4852a441999c9ac2074bd906486393ce2.

Change-Id: I155042bedfc964310065eb29aae4667e859a6f58
Reviewed-on: https://gerrit.chromium.org/gerrit/11391
Tested-by: Scott James Remnant <keybuk@chromium.org>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
89b43fb4852a441999c9ac2074bd906486393ce2 02-Nov-2011 Scott James Remnant <keybuk@chromium.org> site_test: pass unknown initialize arguments to super

Many tests that subclass UITest and PyAutoTest override initialize(),
and call up to the superclass version as they should, but they don't
allow for additional arguments to be passed to the test which the
superclass may make use of.

RecallClientTest (which is what UITest and PyAutoTest are based on)
expects arguments to be passed in from the RecallServerTest that\
activate it.

These patches allow these tests to work with Recall.

BUG=chromium-os:22310
TEST=picked a couple at random to make sure they still worked

Change-Id: Ib9102756b8fd790763b8beacf91888d63aadd2cc
Signed-off-by: Scott James Remnant <keybuk@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/11085
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
6cdaebad4a36d0ad917f9c1285910e66539d0d1a 26-Sep-2011 Benson Leung <bleung@chromium.org> Remove logged_in test and fixed cleanup in power_LoadTest

logged_in attribute no longer exists in login.

Each cros_ui_test based test begins with a fresh ui instance anyway.
Saves some time per test.

BUG=chromium-os:20554
TEST=run power load test. Ensure that at cleanup,
it no longer complains about
Unhandled AttributeError: 'module' object has no attribute 'logged_in'
Ensure test completes correctly and passes.
Did not pass commit queue, but this is unrelated error, as the
power_LoadTest isn't run in any suite.

Change-Id: I7748ae6d40ef32a5f9f47dea7e9609bf33dbe678
Signed-off-by: Benson Leung <bleung@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/8303
Reviewed-by: Nirnimesh <nirnimesh@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b0e162534f79f16882088699fc07464c77ac835e 30-Jul-2011 Chris Masone <cmasone@chromium.org> [autotest] Copy crash reports out of cryptohome on every logout

We're losing Chrome crash reports that occur while the user is logged in.
Copy them out so that we can process the minidumps.

BUG=chromium-os:17898
TEST=suite_Smoke

Change-Id: I1faaab8c48b4b9677adae2081c70f0394e1e39e3
Reviewed-on: http://gerrit.chromium.org/gerrit/5045
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
56fdb56c8d1b0f93a2a9b8eb020b9d7757f4e9a4 27-May-2011 Simon Que <sque@chromium.org> power_LoadTest: report battery voltage during test

In addition to energy rate and battery charge level, report battery
voltage as well, once per minute.

BUG=chromium-os:14629
TEST=None

Change-Id: I10894cf9254c34cf5235a043a5992e6eb309bd88
Signed-off-by: Simon Que <sque@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/1670
Reviewed-by: Sameer Nanda <snanda@chromium.org>
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
278b5370c7d022768e0ab319ce7f439a877e4443 30-Apr-2011 Simon Que <sque@chromium.org> power_LoadTest: Skip ethernet checking if wifi forced

BUG=chrome-os-partner:1952
TEST=none

Change-Id: Ia5b3938809fcdb1acf82e195d3f8b0817622f2e1
Signed-off-by: Simon Que <sque@chromium.org>

power_LoadTest: more flexible checking for ethernet

Instead of hard coding 'eth0' as wired ethernet when checking for it,
the test should probe for it in /sys/class/net.

BUG=chrome-os-partner:1952
TEST=Run on both ARM and x86 systems. It should fail the ethernet check
in both cases.

Change-Id: Ic8077c3fd3cc7a3dd42d4645eb0d53e840d00801
Signed-off-by: Simon Que <sque@chromium.org>

Review URL: http://codereview.chromium.org/6905153
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
f42b45eeadc48728b2cd761393f4ad97e748502c 27-Apr-2011 Simon Que <sque@chromium.org> power_LoadTest: more flexible checking for ethernet

Instead of hard coding 'eth0' as wired ethernet when checking for it,
the test should probe for it in /sys/class/net.

BUG=chrome-os-partner:1952
TEST=Run on both ARM and x86 systems. It should fail the ethernet check
in both cases.

Change-Id: Ic8077c3fd3cc7a3dd42d4645eb0d53e840d00801
Signed-off-by: Simon Que <sque@chromium.org>

Review URL: http://codereview.chromium.org/6898025
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d8e41b7356a3067b7b7561f3a8fe8f12ff2731d6 08-Apr-2011 Simon Que <sque@chromium.org> power_Draw/Idle/LoadTest: Support temperature sensing for x86

Added power_status class to read thermal data (temperature and fans).
Currently only supported for x86.

Tests updated to use it:
- power_Draw
- power_Idle
- power_LoadTest

BUG=chromium-os:13866
TEST=Run these three tests on both x86 and ARM, with reduced time
settings if necessary. They should pass on both. Check max_temp and
min_temp in the test results. They should be properly defined on x86
(something realistic) and undefined on ARM (two absurdly large-magnitude
numbers).

Signed-off-by: Simon Que <sque@chromium.org>
Change-Id: Ib098ead4d6de2f87e1a97a646a64a86ed0e11bf8

Review URL: http://codereview.chromium.org/6800002
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
ffd2a04887ca6c31a6c9501f4c0df8d418f4b055 05-Apr-2011 Simon Que <sque@chromium.org> power_LoadTest: custom tasks param allows for parallel tasks

The 'tasks' param in power_LoadTest allows tasks to be specified as a
combination of sequential and parallel tasks. See comments in control
file.

BUG=chromium-os:13437
TEST=Add "tasks=tasks" to the init function and run the test

Change-Id: Id1e094b9e29b7cd4074223d3ede96f1fc3511c33
Signed-off-by: Simon Que <sque@chromium.org>

Review URL: http://codereview.chromium.org/6691048
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
7868162435adf9082b022a5ba6e00614c7c66381 04-Apr-2011 Simon Que <sque@chromium.org> power_LoadTest: Add parameter for custom tasks

Added a parameter, 'tasks', to power_LoadTest's control file that can
override the default tasks in extension/urls.js with a custom set of
tasks.

Also fixed the way URL cycling delays are scaled in background.html.
Previously, they were not scaled along with start and duration, based on
time_ratio.

Also created functions to convert time into milliseconds, to clean
up code.

BUG=chromium-os:13437
TEST=Run the example in the control file. Set loop_time to something
low, like 120 seconds, and loop_count to 1, so the test doesn't run for
an hour.

Change-Id: I8187341934ceb1944f5c5cdb2ad9ddc64b9169fc
Signed-off-by: Simon Que <sque@chromium.org>

Review URL: http://codereview.chromium.org/6675052
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
bee23c2b0ca824c12c39e7a5a4cd4d2a313918b7 18-Mar-2011 Eric Li <ericli@chromium.org> Refactor site_power_status, power_strip modules into client/cros.

This is a re-submit of http://codereview.chromium.org/6627029

Change-Id: Id4de27435b06c81cc4ea087f175edc0f428fd81a

BUG=chromiumos:12633
TEST=grep the entire autotest repo and find out all source code which has site_power_status and power_strip and changed them.

Review URL: http://codereview.chromium.org/6710010
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b7edff18c59e1caedc32f972551ec68b3620eea5 16-Mar-2011 Dale Curtis <dalecurtis@chromium.org> Remodel power_LoadTest after login_RemoteLogin.

Not sure exactly why this way works and the old one doesn't. My hunch is some class variables are getting setup improperly.

I took the opportunity to fix the attribute error on test server during clean up too.

Change-Id: I080dd91585a374f93218a2478d6a21a9bce42008

BUG=chromium-os:12906, chromium-os:12804
TEST=Ran run_remote_tests w/o fix and observed failure. Ran with fix and failure disappeared. Repeated after removal of owner.key several times.

Review URL: http://codereview.chromium.org/6650019
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
41c65b13a1b67e64f0e1a5457dd3bf6b099e0514 06-Mar-2011 Benson Leung <bleung@chromium.org> Revert "Refactor site_power_status, power_strip modules into client/cros."

This reverts commit 7043cc1c9a93eec5b4aa4b00dd5efb4881c58322.

TBR=ericli@chromium.org

Change-Id: Id24616e1b680361020e58a8f417ff3b1909323b1
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
7043cc1c9a93eec5b4aa4b00dd5efb4881c58322 05-Mar-2011 Eric Li <ericli@chromium.org> Refactor site_power_status, power_strip modules into client/cros.

Change-Id: Id9ab9ae36bde45d00992179ee66ac4888a5e2323

BUG=chromium-os:12633
TEST=grep the entire autotest repo and find out all source code which has site_power_status and power_strip and changed them.

Review URL: http://codereview.chromium.org/6627029
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
6e6be985c67de742de2d463ff8522355a3995f5d 05-Mar-2011 Dale Curtis <dalecurtis@chromium.org> WiFi load testing has connection flakiness. Increase retries to 3.

Change-Id: Ic035461f086f038c7ddc98311b8a436f5c138008

BUG=n0ne
TEST=Ran run_remote_tests, but will need to see in live environment.

Review URL: http://codereview.chromium.org/6634001
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
7bcd700c40df1de04d8bf58e8f60f132df06b8e5 04-Mar-2011 Benson Leung <bleung@chromium.org> Modify power_LoadTest Extension to pull in test parameters.

Use a new content script to pull in the test parameters.

BUG=chromium-os:12426, chromium-os:6944
TEST=run power_LoadTest with 5 minute duration, and also
full 9 hour duration. Verify both work.

Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Sameer Nanda <snanda@chromium.org>

Review URL: http://codereview.chromium.org/2844047

Change-Id: Icb5211c04437a149ea4cbae960989bcb6ca35393
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b910a9da27688211de1a80121ae75146b09e80a4 11-Feb-2011 Eric Li <ericli@chromium.org> Move site_backchannel and site_tpm module into client/cros dir.

And also update all import reference from anywhere else.

Change-Id: Ic32c300f25716698ed346e82b439b2c1ee0c3c9d

BUG=None.
TEST=I will defer the test of this change. The change itself is trivia but setup a test env is overwhelming.
I will leave the change to be tested in lab and I believe this is safe.

Review URL: http://codereview.chromium.org/6479003
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
3fa0580fde83c963b5f7f73636d5b9bb089f938c 01-Feb-2011 Zdenek Behan <zbehan@chromium.org> autotest: introduce flimflam_test_path.py, make use of it in all the places

Flimflam needs path magic to be imported, the new file unifies the way
in which the path is determined across all places, and eliminates some
copy/paste.

Take two of the CL, trying to be less radical and ground(bot)breaking.
Instead of trying to wrap around the whole package, I'm wrapping just
around exporting the path, and flimflam import is done in the same place
as before, to keep namespaces intact.

BUG=11138
TEST=ran BVT's

Change-Id: I6c4abfd7503a1afb0ac81a94024546717d833d3e

Review URL: http://codereview.chromium.org/6269017
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
02b5ce48af62ff6486a2423c0e0adea14e391a48 22-Jan-2011 Zdenek Behan <zbehan@chromium.org> Revert "autotest: introduce cros_flimflam, make use of it in all the places"

This reverts commit d258fff3c63603480159843ef0f8acc68b552cf8.

TBR=dianders

BUG=n0ne
TEST=

Review URL: http://codereview.chromium.org/6295015

Change-Id: I2262f001c364a679393055bcb7bd1e94befe8c91
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d258fff3c63603480159843ef0f8acc68b552cf8 22-Jan-2011 Zdenek Behan <zbehan@chromium.org> autotest: introduce cros_flimflam, make use of it in all the places

Flimflam needs path magic to be imported, the new file unifies the way
in which the path is determined across all places, and eliminates some
copy/paste.

BUG=11138
TEST=emerge autotest-tests, with all individual tests and then all
together

Change-Id: I6c4abfd7503a1afb0ac81a94024546717d833d3e

Review URL: http://codereview.chromium.org/6289012
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
51d1939bf47960b6e65042402a900e0564aa6d3e 06-Jan-2011 Eric Li <ericli@google.com> Rename cros/ui.py into cros/cros_ui.py, and adjust all other import refereces as needed.

Change-Id: I6f1c28d817f91b979737ea3a4cafa9ea23cc693a

BUG=7236
TEST=
1. run
grep -wnrc ui server/* | grep -v $":0" | sort
grep -wnrc ui client/* | grep -v $":0" | sort
to find out all reference to ui module.

2. emerge autotest, and run bvt against a live system.

Review URL: http://codereview.chromium.org/6037017
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
e7c4cab13a8576a4f9de41b2dc1fb8c45c97424c 05-Jan-2011 Eric Li <ericli@google.com> Change-Id: Ib50962111d0c6c07a135679d80930af4bc52915b

Move site_chrome_test, site_logging, site_log_reader,
site_crash_test into cros dir.

site_chrome_test --> cros/chrome_test
site_crash_test --> cros/crash_test
site_logging --> cros/cros_logging
site_log_reader --> cros/cros_logging
site_ui_test --> cros/cros_ui_test

I had removed site_logging module and moved its code into cros_logging, since its new name (logging) has conflict with python's logging module.

site_log_reader has also been merged into cros_logging module.

As I am touching all the files in the list, I also removed some unnecessary import to autotest_lib.client.bin.test.

Change-Id: I2c8f101a6c7a0499619e227e4cb0cfb8ceec4690

BUG=7236
TEST=run bvt and every other tests been touched from both source (third_party/autotest/files) and chroot (/build/board/usr/local/autotest)

Review URL: http://codereview.chromium.org/5740004
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
c4d8f4aab4e434fcb1a9fb33931768ffebfb8f1c 10-Dec-2010 Eric Li <ericli@google.com> Move site_httpd, site_uim, site_login and site_cryptohome into cros/ dir.

And change import site_utils to import utils as I touched more source code.

Change-Id: I18bbac502c67ddedaccc7ef034c4f8c8b204506e

BUG=7236
TEST=BVT

Review URL: http://codereview.chromium.org/5680003
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
cb6a91adb049e9d5fe42a9adc4e570a988203e65 09-Dec-2010 Eric Li <ericli@google.com> Move site_ui_test, site_auth_server and site_dns_server into client/cros.

And fall back import site_utils into import utils, since there need to directly import site_utils at all.
import site_utils is taken care inside utils.

Change-Id: I4bb989c0fb636efd57ae1af185fd8e6fa6067463

BUG=7236
TEST=bvt and regression tests.

Review URL: http://codereview.chromium.org/5649004
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
b5056ea955d1997ce7d28441656f6134b30a1a07 03-Dec-2010 Dale Curtis <dalecurtis@chromium.org> Cleanup backchannel interface.

I changed power_LoadTest to use the teardown functionality provided by ellyjones' enhanced backchannel library.

Change-Id: If833220593d80e805b96582cbc54c6b53a9adb55

BUG=chromium-os:9989
TEST=Ran test on variety of machines.

Review URL: http://codereview.chromium.org/5580005
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d79bea0a1d57d37e3f72648c7f9ddbe34dec3e73 09-Nov-2010 Thieu Le <thieule@chromium.org> Change tests to wait for login prompt before attempting to login

BUG=8894
TEST=power_LoadTest, Suite_Smoke

Change-Id: Icf8e9395def39b358d95018f7da041739180bf5d

Review URL: http://codereview.chromium.org/4725001
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
01d3c6edb4c352e83cd491bfdaf1aed5595727be 19-Oct-2010 Darin Petkov <petkov@chromium.org> Import flimflam's test modules from /usr/local/lib rather than /usr/lib.

BUG=7856
TEST=inspected that flimflam's test scripts are under /usr/local/lib now.

Change-Id: I195a62080de3e58ed23b0386dbb47ab5dc948c2b

Review URL: http://codereview.chromium.org/3799009
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
d075074b8fc70d829912864f819345407295f35d 29-Sep-2010 Sameer Nanda <snanda@chromium.org> Forcibly turn display on and reset X settings at the start of each iteration.

BUG=chromium-os:7154
TEST= ran the power_LoadTest

Change-Id: I2e5301074c51de5e22cd5e1c0b5cb81329f164e4

Review URL: http://codereview.chromium.org/3569001
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
9450ad9bc6e5537d93f31bd53f161067fb13a1d5 23-Jul-2010 Dale Curtis <dalecurtis@google.com> Added backchannel and WiFi support to power_LoadTest. When the force_wifi flag is set, the script will convert eth0 into a backchannel interface and an attempt to connect a specified WiFi AP.

The flag is defaulted to off. A separate CL will be submitted to update the nightly power control file.

TEST=Ran test manually on several L13 and ZGA machines, with both good and bad SSIDs. Backchannel and FlimFlam scripts have been tested separately in their own CL.

Review URL: http://codereview.chromium.org/3029021
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
63256e2ee8ad772aed4d50e8a527dc3659ea8cba 08-Jul-2010 Sameer Nanda <snanda@chromium.org> Removed call to xset -- its not needed anymore since powerd handles this now.

This was also causing a failure in the power nightly.

Review URL: http://codereview.chromium.org/2838045
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
dfc0199adabc92a7311df0f00629afb171495de9 03-Jul-2010 Benson Leung <bleung@chromium.org> Fixed cleanup condition if an error occurs before we copy json.

BUG=none
TEST=power_LoadTest

Signed-off-by: Benson Leung <bleung@chromium.org>

Review URL: http://codereview.chromium.org/2862043
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
06548eee3dafcf0fc9ee0dcd15eb607b901ad2c1 02-Jul-2010 Benson Leung <bleung@chromium.org> External Extension for power_LoadTest

Enable the use of an external extension so we no longer spawn another instance
of chrome to run this test. The external extension is loaded when chrome
logs in.

BUG=none
TEST=power_LoadTest

Signed-off-by: Benson Leung <bleung@chromium.org>

Review URL: http://codereview.chromium.org/2872027
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
77962639bc65f67634d4a2761c40d39a2be6a0da 30-Jun-2010 Ken Mixter <kmixter@google.com> Fix error types used in load test

BUG=3890

Review URL: http://codereview.chromium.org/2865025
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
5aaf2314cf2bcdb9c89b42f3eb50e40cc76baf6b 17-May-2010 David James <davidjames@google.com> Also stop powerd in power_Backlight and power_LoadTest

powerd isn't currently completely functional, but it can still interfere
with power tests because it dims the screen during inactivity.

BUG=none
TEST=Ran on my eeepc

Review URL: http://codereview.chromium.org/2110005
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
3e289e4df94a6e41fc5ea7fdb731c5988948f4ed 07-May-2010 Sameer Nanda <snanda@chromium.org> Disable xset dpms standby, suspend and off timeouts.
This prevents the screen from turning off while running the load test.

Review URL: http://codereview.chromium.org/2049001
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
4f99e9a29b81d14cc94eb711cdb4adb5e66872ab 03-May-2010 Sameer Nanda <snanda@chromium.org> Added automatic login to Chrome OS in the test.
Also added keyvals for recording the current and max backlight levels.

Review URL: http://codereview.chromium.org/1854003
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
417da5be901b3e68131017e1a631bdd84835b1d2 01-May-2010 Sameer Nanda <snanda@chromium.org> Modifications to get power_LoadTest added to suite_NightlyPower.

This entailed:
- adding low battery check so the system doesn't completely run out of
battery and powers down.
- loop inside the power_LoadTest instead of externally via iterations
so that a single keyval file gets spit out by the test. This helps
when plotting these keyvals on the dashboard.
- adding power_LoadTest to suite_NightlyPower.

Review URL: http://codereview.chromium.org/1753016
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
9d45d3d922f8f173ee28b5f7eef9c58ef8c8fd69 21-Apr-2010 David James <davidjames@google.com> Fix Bug 2746: xset is not working in power_LoadTest

Switch from xcommand to xsystem so that command is actually run.

TEST=Ran test on my eeepc and verified that display turned on.
BUG=2746

Review URL: http://codereview.chromium.org/1754002
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
87aced24632053d9df0a42842307abf165f60ad1 26-Mar-2010 Sameer Nanda <snanda@chromium.org> Added recording of power stats for USB, CPUIdle and CPUFreq.

Review URL: http://codereview.chromium.org/1384003
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
31d58c10977e075e0b7235be608ecab52bc9509e 12-Mar-2010 Darin Petkov <petkov@chromium.org> Fix identifier.

Review URL: http://codereview.chromium.org/856005
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
cdee172356a472b6e64ad484bc1597c3495dbaf6 12-Mar-2010 Darin Petkov <petkov@chromium.org> Fix so that join works.

Review URL: http://codereview.chromium.org/849002
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
50fb54165e35caebc1bd90d409fcba0fe0b01658 11-Mar-2010 Sameer Nanda <snanda@chromium.org> Run audiovideo_V4L2 test in parallel.

Updated documentation to spell out exact steps required to prepare
machine before running the test.

Updated extension status report handling.

Review URL: http://codereview.chromium.org/773001
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
ce1407b29b32f8f8fb1121251e28f0861ecac6a8 06-Mar-2010 Sameer Nanda <snanda@chromium.org> Fixed file perms for the test's bindir.

Also re-enabled check for making sure the system is not running on AC
power. This check was inadvertently disabled in the previous checkin.

Review URL: http://codereview.chromium.org/668190
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
9d4bcb6d907ad23d947f65d3c764c8ee3848e7d3 05-Mar-2010 Sameer Nanda <snanda@chromium.org> Parameterized power test extension.

Bunch of other changes as well.

Review URL: http://codereview.chromium.org/669123
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py
6a0746595cb21c52db2b4ef2e03ff1d73a75c1d0 02-Mar-2010 Sameer Nanda <snanda@chromium.org> Initial check-in of battery power load test

Review URL: http://codereview.chromium.org/661338
/external/autotest/client/site_tests/power_LoadTest/power_LoadTest.py