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

Side by Side Diff: tools/valgrind/valgrind_test.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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 # valgrind_test.py
7
8 """Runs an exe through Valgrind and puts the intermediate files in a 5 """Runs an exe through Valgrind and puts the intermediate files in a
9 directory. 6 directory.
10 """ 7 """
11 8
12 import datetime 9 import datetime
13 import glob 10 import glob
14 import logging 11 import logging
15 import optparse 12 import optparse
16 import os 13 import os
17 import re 14 import re
(...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 return Asan() 1138 return Asan()
1142 try: 1139 try:
1143 platform_name = common.PlatformNames()[0] 1140 platform_name = common.PlatformNames()[0]
1144 except common.NotImplementedError: 1141 except common.NotImplementedError:
1145 platform_name = sys.platform + "(Unknown)" 1142 platform_name = sys.platform + "(Unknown)"
1146 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, 1143 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name,
1147 platform_name) 1144 platform_name)
1148 1145
1149 def CreateTool(tool): 1146 def CreateTool(tool):
1150 return ToolFactory().Create(tool) 1147 return ToolFactory().Create(tool)
1151
1152 if __name__ == '__main__':
1153 logging.error(sys.argv[0] + " can not be run from command line")
1154 sys.exit(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698