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

Unified Diff: client/site_tests/power_x86Settings/power_x86Settings.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
Index: client/site_tests/power_x86Settings/power_x86Settings.py
diff --git a/client/site_tests/power_x86Settings/power_x86Settings.py b/client/site_tests/power_x86Settings/power_x86Settings.py
index ee4b7138dc3f13cddcc3823a299497000c834c2f..10ce09ff67ea6bd1a9b81eb41cb72d9a08cd5aae 100755
--- a/client/site_tests/power_x86Settings/power_x86Settings.py
+++ b/client/site_tests/power_x86Settings/power_x86Settings.py
@@ -3,8 +3,10 @@
# 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
+
# Specify registers to check. The format needs to be:
# register offset : ('bits', 'expression')
@@ -43,8 +45,8 @@ class power_x86Settings(test.test):
self._pci_read32_cmd = 'iotools pci_read32'
self._mmio_read32_cmd = 'iotools mmio_read32'
- 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:

Powered by Google App Engine
This is Rietveld 408576698