Bug 1367465 - Fix log message when setting selinux mode on Android fails r?bc
MozReview-Commit-ID: LvLfujDcGfU
--- a/testing/mozbase/mozdevice/mozdevice/adb_android.py
+++ b/testing/mozbase/mozdevice/mozdevice/adb_android.py
@@ -86,17 +86,17 @@ class ADBAndroid(ADBDevice):
# getenforce returns either Enforcing or Permissive
try:
self.selinux = True
if self.shell_output('getenforce', timeout=timeout) != 'Permissive':
self._logger.info('Setting SELinux Permissive Mode')
self.shell_output("setenforce Permissive", timeout=timeout, root=True)
except (ADBError, ADBRootError), e:
- self._logger.warning('Unable to set SELinux Permissive due to %s.', e)
+ self._logger.warning('Unable to set SELinux Permissive due to %s.' % e)
self.selinux = False
self.version = int(self.shell_output("getprop ro.build.version.sdk",
timeout=timeout))
def reboot(self, timeout=None):
"""Reboots the device.