Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2302)

Unified Diff: build/android/pylib/valgrind_tools.py

Issue 153743008: Revert of Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging with changes to pylib/linker/test_case.py. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/utils/xvfb.py ('k') | build/android/surface_stats.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/valgrind_tools.py
diff --git a/build/android/pylib/valgrind_tools.py b/build/android/pylib/valgrind_tools.py
index 1116ae43484a1f378d9642d1bf576c650b3def46..95ae2b9797a058052ab67dd9b836a25fbe400579 100644
--- a/build/android/pylib/valgrind_tools.py
+++ b/build/android/pylib/valgrind_tools.py
@@ -20,13 +20,13 @@ Call tool.SetupEnvironment().
Run the test as usual.
Call tool.CleanUpEnvironment().
"""
-# pylint: disable=R0201
import os.path
import subprocess
import sys
+from glob import glob
-from pylib.constants import DIR_SOURCE_ROOT
+from constants import DIR_SOURCE_ROOT
def SetChromeTimeoutScale(adb, scale):
@@ -42,10 +42,6 @@ def SetChromeTimeoutScale(adb, scale):
class BaseTool(object):
"""A tool that does nothing."""
- def __init__(self):
- """Does nothing."""
- pass
-
def GetTestWrapper(self):
"""Returns a string that is to be prepended to the test command line."""
return ''
@@ -97,7 +93,6 @@ class AddressSanitizerTool(BaseTool):
EXTRA_OPTIONS = 'strict_memcmp=0'
def __init__(self, adb):
- super(AddressSanitizerTool, self).__init__()
self._adb = adb
# Configure AndroidCommands to run utils (such as md5sum_bin) under ASan.
# This is required because ASan is a compiler-based tool, and md5sum
@@ -142,7 +137,6 @@ class ValgrindTool(BaseTool):
VGLOGS_DIR = '/data/local/tmp/vglogs'
def __init__(self, adb):
- super(ValgrindTool, self).__init__()
self._adb = adb
# exactly 31 chars, SystemProperties::PROP_NAME_MAX
self._wrap_properties = ['wrap.com.google.android.apps.ch',
@@ -233,11 +227,11 @@ class TSanTool(ValgrindTool):
TOOL_REGISTRY = {
- 'memcheck': MemcheckTool,
- 'memcheck-renderer': MemcheckTool,
- 'tsan': TSanTool,
- 'tsan-renderer': TSanTool,
- 'asan': AddressSanitizerTool,
+ 'memcheck': lambda x: MemcheckTool(x),
+ 'memcheck-renderer': lambda x: MemcheckTool(x),
+ 'tsan': lambda x: TSanTool(x),
+ 'tsan-renderer': lambda x: TSanTool(x),
+ 'asan': lambda x: AddressSanitizerTool(x),
}
« no previous file with comments | « build/android/pylib/utils/xvfb.py ('k') | build/android/surface_stats.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698