OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # 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 |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """ | 5 """ |
6 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 |
7 test under some kind of runtime error detection tool. | 7 test under some kind of runtime error detection tool. |
8 | 8 |
9 The interface is intended to be used as follows. | 9 The interface is intended to be used as follows. |
10 | 10 |
11 1. For tests that simply run a native process (i.e. no activity is spawned): | 11 1. For tests that simply run a native process (i.e. no activity is spawned): |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 if not tool_name: | 176 if not tool_name: |
177 return BaseTool() | 177 return BaseTool() |
178 | 178 |
179 ctor = TOOL_REGISTRY.get(tool_name) | 179 ctor = TOOL_REGISTRY.get(tool_name) |
180 if ctor: | 180 if ctor: |
181 return ctor(adb) | 181 return ctor(adb) |
182 else: | 182 else: |
183 print 'Unknown tool %s, available tools: %s' % ( | 183 print 'Unknown tool %s, available tools: %s' % ( |
184 tool_name, ', '.join(sorted(TOOL_REGISTRY.keys()))) | 184 tool_name, ', '.join(sorted(TOOL_REGISTRY.keys()))) |
185 sys.exit(1) | 185 sys.exit(1) |
OLD | NEW |