Commit 2d5eeedf authored by eugenis@chromium.org's avatar eugenis@chromium.org

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: svn://svn.chromium.org/chrome/trunk/src@243848 0039d316-1c4b-4281-b951-d872f2087c98
parent 3151a82a
......@@ -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()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment