OLD | NEW |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 def GetLabel(self): | 55 def GetLabel(self): |
56 return "%s test262 %s" % (self.mode, self.GetName()) | 56 return "%s test262 %s" % (self.mode, self.GetName()) |
57 | 57 |
58 def IsFailureOutput(self, output): | 58 def IsFailureOutput(self, output): |
59 if output.exit_code != 0: | 59 if output.exit_code != 0: |
60 return True | 60 return True |
61 return 'FAILED!' in output.stdout | 61 return 'FAILED!' in output.stdout |
62 | 62 |
63 def GetCommand(self): | 63 def GetCommand(self): |
64 result = self.context.GetVmCommand(self, self.mode) | 64 result = self.context.GetVmCommand(self, self.mode) |
65 result += [ '--es5_readonly' ] # Temporary hack until we can remove flag | |
66 result += self.framework | 65 result += self.framework |
67 result.append(self.filename) | 66 result.append(self.filename) |
68 return result | 67 return result |
69 | 68 |
70 def GetName(self): | 69 def GetName(self): |
71 return self.path[-1] | 70 return self.path[-1] |
72 | 71 |
73 def GetSource(self): | 72 def GetSource(self): |
74 return open(self.filename).read() | 73 return open(self.filename).read() |
75 | 74 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 return ['d8'] | 132 return ['d8'] |
134 | 133 |
135 def GetTestStatus(self, sections, defs): | 134 def GetTestStatus(self, sections, defs): |
136 status_file = join(self.root, 'test262.status') | 135 status_file = join(self.root, 'test262.status') |
137 if exists(status_file): | 136 if exists(status_file): |
138 test.ReadConfigurationInto(status_file, sections, defs) | 137 test.ReadConfigurationInto(status_file, sections, defs) |
139 | 138 |
140 | 139 |
141 def GetConfiguration(context, root): | 140 def GetConfiguration(context, root): |
142 return Test262TestConfiguration(context, root) | 141 return Test262TestConfiguration(context, root) |
OLD | NEW |