diff options
author | guanxian.li <guanxian.li@intel.com> | 2015-06-17 06:10:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-17 13:10:27 +0000 |
commit | 487394ddeed68a79f92e1efa7a7920d588206063 (patch) | |
tree | f191d015ea63d7026647a3452921c525047e2fce /build | |
parent | 589e9d7da68af96db721e9dcbf1997f32997d503 (diff) | |
download | chromium_src-487394ddeed68a79f92e1efa7a7920d588206063.zip chromium_src-487394ddeed68a79f92e1efa7a7920d588206063.tar.gz chromium_src-487394ddeed68a79f92e1efa7a7920d588206063.tar.bz2 |
[Android] Fix incorrect type of comparison in local_device_environment.py
The two objects of comparison in local_device_environment.py need to be the
same type of string. Or it would be false and raise the error all the time.
BUG=500834
Review URL: https://codereview.chromium.org/1185653003
Cr-Commit-Position: refs/heads/master@{#334818}
Diffstat (limited to 'build')
-rw-r--r-- | build/android/pylib/local/device/local_device_environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/android/pylib/local/device/local_device_environment.py b/build/android/pylib/local/device/local_device_environment.py index 0d02ca3..04f9ab7 100644 --- a/build/android/pylib/local/device/local_device_environment.py +++ b/build/android/pylib/local/device/local_device_environment.py @@ -25,7 +25,7 @@ class LocalDeviceEnvironment(environment.Environment): raise device_errors.NoDevicesError if self._device_serial: self._devices = [d for d in available_devices - if d.adb.GetDeviceSerial == self._device_serial] + if d.adb.GetDeviceSerial() == self._device_serial] if not self._devices: raise device_errors.DeviceUnreachableError( 'Could not find device %r' % self._device_serial) |