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

Side by Side Diff: build/android/valgrind_tools.py

Issue 8667008: Fix python scripts in src/build/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 3 # found in the LICENSE file.
5 4
6 """ 5 """
7 Classes in this file define additional actions that need to be taken to run a 6 Classes in this file define additional actions that need to be taken to run a
8 test under some kind of runtime error detection tool. 7 test under some kind of runtime error detection tool.
9 8
10 The interface is intended to be used as follows. 9 The interface is intended to be used as follows.
11 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 if not tool_name: 176 if not tool_name:
178 return BaseTool() 177 return BaseTool()
179 178
180 ctor = TOOL_REGISTRY.get(tool_name) 179 ctor = TOOL_REGISTRY.get(tool_name)
181 if ctor: 180 if ctor:
182 return ctor(adb) 181 return ctor(adb)
183 else: 182 else:
184 print 'Unknown tool %s, available tools: %s' % ( 183 print 'Unknown tool %s, available tools: %s' % (
185 tool_name, ', '.join(sorted(TOOL_REGISTRY.keys()))) 184 tool_name, ', '.join(sorted(TOOL_REGISTRY.keys())))
186 sys.exit(1) 185 sys.exit(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698