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

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: Fixes 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
« no previous file with comments | « tools/valgrind/tsan_analyze.py ('k') | tools/win/supalink/check_installed.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 return Asan() 1179 return Asan()
1183 try: 1180 try:
1184 platform_name = common.PlatformNames()[0] 1181 platform_name = common.PlatformNames()[0]
1185 except common.NotImplementedError: 1182 except common.NotImplementedError:
1186 platform_name = sys.platform + "(Unknown)" 1183 platform_name = sys.platform + "(Unknown)"
1187 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, 1184 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name,
1188 platform_name) 1185 platform_name)
1189 1186
1190 def CreateTool(tool): 1187 def CreateTool(tool):
1191 return ToolFactory().Create(tool) 1188 return ToolFactory().Create(tool)
1192
1193 if __name__ == '__main__':
1194 logging.error(sys.argv[0] + " can not be run from command line")
1195 sys.exit(1)
OLDNEW
« no previous file with comments | « tools/valgrind/tsan_analyze.py ('k') | tools/win/supalink/check_installed.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698