Switch SELinux to permissive before running ASan tests.
Process wrapping on Android currently conflicts with SELinux. TEST=ASan content_shell test on KLP Android BUG=325685 R=bulach@chromium.org Review URL: https://codereview.chromium.org/120733002 git-svn-id: http://src.chromium.org/svn/trunk/src/build@243848 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
8e2786ef74
Коммит
15650ffbd1
|
@ -124,6 +124,7 @@ class AddressSanitizerTool(BaseTool):
|
|||
|
||||
def SetupEnvironment(self):
|
||||
self._adb.EnableAdbRoot()
|
||||
self._adb.RunShellCommand('setenforce 0')
|
||||
for prop in self._wrap_properties:
|
||||
self._adb.RunShellCommand('setprop %s "logwrapper %s"' % (
|
||||
prop, self.GetTestWrapper()))
|
||||
|
@ -167,6 +168,7 @@ class ValgrindTool(BaseTool):
|
|||
def SetupEnvironment(self):
|
||||
"""Sets up device environment."""
|
||||
self._adb.RunShellCommand('chmod 777 /data/local/tmp')
|
||||
self._adb.RunShellCommand('setenforce 0')
|
||||
for prop in self._wrap_properties:
|
||||
self._adb.RunShellCommand('setprop %s "logwrapper %s"' % (
|
||||
prop, self.GetTestWrapper()))
|
||||
|
|
Загрузка…
Ссылка в новой задаче