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

Side by Side Diff: test/cctest/testcfg.py

Issue 11929020: tools/runtests.py: Fix cctests on Windows; properly return error code when there were Python except… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 months 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 | « no previous file | tools/testrunner/local/execution.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 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 27 matching lines...) Expand all
38 38
39 def __init__(self, name, root): 39 def __init__(self, name, root):
40 super(CcTestSuite, self).__init__(name, root) 40 super(CcTestSuite, self).__init__(name, root)
41 self.serdes_dir = os.path.normpath( 41 self.serdes_dir = os.path.normpath(
42 os.path.join(root, "..", "..", "out", ".serdes")) 42 os.path.join(root, "..", "..", "out", ".serdes"))
43 if os.path.exists(self.serdes_dir): 43 if os.path.exists(self.serdes_dir):
44 shutil.rmtree(self.serdes_dir, True) 44 shutil.rmtree(self.serdes_dir, True)
45 os.makedirs(self.serdes_dir) 45 os.makedirs(self.serdes_dir)
46 46
47 def ListTests(self, context): 47 def ListTests(self, context):
48 shell = os.path.abspath(os.path.join(context.shell_dir, self.shell()))
48 if utils.IsWindows(): 49 if utils.IsWindows():
49 shell += '.exe' 50 shell += '.exe'
50 shell = os.path.abspath(os.path.join(context.shell_dir, self.shell()))
51 output = commands.Execute([context.command_prefix, 51 output = commands.Execute([context.command_prefix,
52 shell, 52 shell,
53 '--list', 53 '--list',
54 context.extra_flags]) 54 context.extra_flags])
55 if output.exit_code != 0: 55 if output.exit_code != 0:
56 print output.stdout 56 print output.stdout
57 print output.stderr 57 print output.stderr
58 return [] 58 return []
59 tests = [] 59 tests = []
60 for test_desc in output.stdout.strip().split(): 60 for test_desc in output.stdout.strip().split():
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return result 171 return result
172 172
173 def GetTestStatus(self, sections, defs): 173 def GetTestStatus(self, sections, defs):
174 status_file = join(self.root, 'cctest.status') 174 status_file = join(self.root, 'cctest.status')
175 if exists(status_file): 175 if exists(status_file):
176 test.ReadConfigurationInto(status_file, sections, defs) 176 test.ReadConfigurationInto(status_file, sections, defs)
177 177
178 178
179 def GetConfiguration(context, root): 179 def GetConfiguration(context, root):
180 return CcTestConfiguration(context, root) 180 return CcTestConfiguration(context, root)
OLDNEW
« no previous file with comments | « no previous file | tools/testrunner/local/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698