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

Unified Diff: client/site_tests/power_LoadTest/power_LoadTest.py

Issue 6675052: power_LoadTest: Add parameter for custom tasks (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: More cleanups Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/site_tests/power_LoadTest/params.js ('k') | client/site_tests/power_LoadTest/testparams.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/power_LoadTest/power_LoadTest.py
diff --git a/client/site_tests/power_LoadTest/power_LoadTest.py b/client/site_tests/power_LoadTest/power_LoadTest.py
index 3694f1f280582e3434e437e00e95cafed22b99e2..02226e42089cc90509ceacdfdef2d70c54a59f43 100755
--- a/client/site_tests/power_LoadTest/power_LoadTest.py
+++ b/client/site_tests/power_LoadTest/power_LoadTest.py
@@ -17,6 +17,7 @@ params_dict = {
'scroll_loop': '_scroll_loop',
'scroll_interval_ms': '_scroll_interval_ms',
'scroll_by_pixels': '_scroll_by_pixels',
+ 'tasks': '_tasks',
}
@@ -49,7 +50,7 @@ class power_LoadTest(cros_ui_test.UITest):
scroll_loop='false', scroll_interval_ms='10000',
scroll_by_pixels='600', low_battery_threshold=3,
verbose=True, force_wifi=False, wifi_ap='', wifi_sec='none',
- wifi_pw=''):
+ wifi_pw='', tasks=""):
"""
percent_initial_charge_min: min battery charge at start of test
@@ -77,6 +78,7 @@ class power_LoadTest(cros_ui_test.UITest):
self._json_path = None
self._force_wifi = force_wifi
self._testServer = None
+ self._tasks = '\'' + tasks + '\''
# verify that initial conditions are met:
if self._power_status.linepower[0].online:
« no previous file with comments | « client/site_tests/power_LoadTest/params.js ('k') | client/site_tests/power_LoadTest/testparams.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698