OLD | NEW |
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 Loading... |
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) |
OLD | NEW |