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

Side by Side Diff: tools/testrunner/local/testsuite.py

Issue 27704002: Make it possible to run a test only in the standard variant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated feedback Created 7 years, 2 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 | « tools/testrunner/local/statusfile.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 # Used in the status file and for stdout printing. 67 # Used in the status file and for stdout printing.
68 def CommonTestName(self, testcase): 68 def CommonTestName(self, testcase):
69 if utils.IsWindows(): 69 if utils.IsWindows():
70 return testcase.path.replace("\\", "/") 70 return testcase.path.replace("\\", "/")
71 else: 71 else:
72 return testcase.path 72 return testcase.path
73 73
74 def ListTests(self, context): 74 def ListTests(self, context):
75 raise NotImplementedError 75 raise NotImplementedError
76 76
77 def VariantFlags(self): 77 def VariantFlags(self, testcase, default_flags):
78 return None 78 if testcase.outcomes and statusfile.OnlyStandardVariant(testcase.outcomes):
79 return [[]]
80 return default_flags
79 81
80 def DownloadData(self): 82 def DownloadData(self):
81 pass 83 pass
82 84
83 def ReadStatusFile(self, variables): 85 def ReadStatusFile(self, variables):
84 (self.rules, self.wildcards) = \ 86 (self.rules, self.wildcards) = \
85 statusfile.ReadStatusFile(self.status_file(), variables) 87 statusfile.ReadStatusFile(self.status_file(), variables)
86 88
87 def ReadTestCases(self, context): 89 def ReadTestCases(self, context):
88 self.tests = self.ListTests(context) 90 self.tests = self.ListTests(context)
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 def StripOutputForTransmit(self, testcase): 187 def StripOutputForTransmit(self, testcase):
186 if not self.HasUnexpectedOutput(testcase): 188 if not self.HasUnexpectedOutput(testcase):
187 testcase.output.stdout = "" 189 testcase.output.stdout = ""
188 testcase.output.stderr = "" 190 testcase.output.stderr = ""
189 191
190 def CalculateTotalDuration(self): 192 def CalculateTotalDuration(self):
191 self.total_duration = 0.0 193 self.total_duration = 0.0
192 for t in self.tests: 194 for t in self.tests:
193 self.total_duration += t.duration 195 self.total_duration += t.duration
194 return self.total_duration 196 return self.total_duration
OLDNEW
« no previous file with comments | « tools/testrunner/local/statusfile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698