Index: build/android/pylib/device/battery_utils_test.py |
diff --git a/build/android/pylib/device/battery_utils_test.py b/build/android/pylib/device/battery_utils_test.py |
index bc1e34122f0d29bb48683b15beb3bbfa27900d56..3032b0d24aa167fe3c9e67b3022e008b39184369 100755 |
--- a/build/android/pylib/device/battery_utils_test.py |
+++ b/build/android/pylib/device/battery_utils_test.py |
@@ -20,6 +20,11 @@ |
from pylib.device import device_utils |
from pylib.device import device_utils_test |
from pylib.utils import mock_calls |
+ |
+# RunCommand from third_party/android_testrunner/run_command.py is mocked |
+# below, so its path needs to be in sys.path. |
+sys.path.append(os.path.join( |
+ constants.DIR_SOURCE_ROOT, 'third_party', 'android_testrunner')) |
sys.path.append(os.path.join( |
constants.DIR_SOURCE_ROOT, 'third_party', 'pymock')) |