| 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 |
| 65 result += self.framework | 66 result += self.framework |
| 66 result.append(self.filename) | 67 result.append(self.filename) |
| 67 return result | 68 return result |
| 68 | 69 |
| 69 def GetName(self): | 70 def GetName(self): |
| 70 return self.path[-1] | 71 return self.path[-1] |
| 71 | 72 |
| 72 def GetSource(self): | 73 def GetSource(self): |
| 73 return open(self.filename).read() | 74 return open(self.filename).read() |
| 74 | 75 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return ['d8'] | 133 return ['d8'] |
| 133 | 134 |
| 134 def GetTestStatus(self, sections, defs): | 135 def GetTestStatus(self, sections, defs): |
| 135 status_file = join(self.root, 'test262.status') | 136 status_file = join(self.root, 'test262.status') |
| 136 if exists(status_file): | 137 if exists(status_file): |
| 137 test.ReadConfigurationInto(status_file, sections, defs) | 138 test.ReadConfigurationInto(status_file, sections, defs) |
| 138 | 139 |
| 139 | 140 |
| 140 def GetConfiguration(context, root): | 141 def GetConfiguration(context, root): |
| 141 return Test262TestConfiguration(context, root) | 142 return Test262TestConfiguration(context, root) |
| OLD | NEW |