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

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

Issue 6627029: Refactor site_power_status, power_strip modules into client/cros. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch 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/cros/power_strip.py ('k') | client/site_tests/power_Backlight/power_Backlight.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/power_ARMSettings/power_ARMSettings.py
diff --git a/client/site_tests/power_ARMSettings/power_ARMSettings.py b/client/site_tests/power_ARMSettings/power_ARMSettings.py
index 0e3ccdd2582a842932589360a01c19b32d37e123..c49fb66e1d4500617bb56efeb703a2fdee1984f6 100644
--- a/client/site_tests/power_ARMSettings/power_ARMSettings.py
+++ b/client/site_tests/power_ARMSettings/power_ARMSettings.py
@@ -3,8 +3,9 @@
# found in the LICENSE file.
import glob, logging, os, re
-from autotest_lib.client.bin import test
-from autotest_lib.client.common_lib import error, site_power_status, utils
+from autotest_lib.client.bin import test, utils
+from autotest_lib.client.common_lib import error
+from autotest_lib.client.cros import power_status
class power_ARMSettings(test.test):
version = 1
@@ -13,8 +14,8 @@ class power_ARMSettings(test.test):
if not self._check_cpu_type():
raise error.TestNAError('Unsupported CPU')
- power_status = site_power_status.get_status()
- if power_status.linepower[0].online:
+ status = power_status.get_status()
+ if status.linepower[0].online:
logging.info('AC Power is online')
self._on_ac = True
else:
« no previous file with comments | « client/cros/power_strip.py ('k') | client/site_tests/power_Backlight/power_Backlight.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698