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

Unified Diff: client/site_tests/power_Backlight/power_Backlight.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_Backlight/power_Backlight.py
diff --git a/client/site_tests/power_Backlight/power_Backlight.py b/client/site_tests/power_Backlight/power_Backlight.py
index 2be3360b26e836454cde27b58c84252ed8f53cfe..08aab7573b360d80be4c54a2c53b24135012935e 100644
--- a/client/site_tests/power_Backlight/power_Backlight.py
+++ b/client/site_tests/power_Backlight/power_Backlight.py
@@ -4,8 +4,8 @@
import logging, os, time
from autotest_lib.client.bin import test, utils
-from autotest_lib.client.common_lib import error, site_power_status
-from autotest_lib.client.cros import cros_ui
+from autotest_lib.client.common_lib import error
+from autotest_lib.client.cros import cros_ui, power_status
class power_Backlight(test.test):
version = 1
@@ -24,7 +24,7 @@ class power_Backlight(test.test):
cros_ui.xsystem('LD_LIBRARY_PATH=/usr/local/lib ' + 'xset dpms 0 0 0')
cros_ui.xsystem('LD_LIBRARY_PATH=/usr/local/lib ' + 'xset -dpms')
- status = site_power_status.get_status()
+ status = power_status.get_status()
if status.linepower[0].online:
raise error.TestFail('Machine must be unplugged')
« no previous file with comments | « client/site_tests/power_ARMSettings/power_ARMSettings.py ('k') | client/site_tests/power_BatteryCharge/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698