| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2008 the V8 project authors. All rights reserved. | 3 # Copyright 2008 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 pass | 372 pass |
| 373 | 373 |
| 374 def AfterRun(self, result): | 374 def AfterRun(self, result): |
| 375 pass | 375 pass |
| 376 | 376 |
| 377 def GetCustomFlags(self, mode): | 377 def GetCustomFlags(self, mode): |
| 378 return None | 378 return None |
| 379 | 379 |
| 380 def Run(self): | 380 def Run(self): |
| 381 self.BeforeRun() | 381 self.BeforeRun() |
| 382 result = "exception" | |
| 383 try: | 382 try: |
| 384 result = self.RunCommand(self.GetCommand()) | 383 result = self.RunCommand(self.GetCommand()) |
| 385 finally: | 384 finally: |
| 386 self.AfterRun(result) | 385 self.AfterRun(result) |
| 387 return result | 386 return result |
| 388 | 387 |
| 389 def Cleanup(self): | 388 def Cleanup(self): |
| 390 return | 389 return |
| 391 | 390 |
| 392 | 391 |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 for entry in timed_tests[:20]: | 1480 for entry in timed_tests[:20]: |
| 1482 t = FormatTime(entry.duration) | 1481 t = FormatTime(entry.duration) |
| 1483 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) | 1482 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) |
| 1484 index += 1 | 1483 index += 1 |
| 1485 | 1484 |
| 1486 return result | 1485 return result |
| 1487 | 1486 |
| 1488 | 1487 |
| 1489 if __name__ == '__main__': | 1488 if __name__ == '__main__': |
| 1490 sys.exit(Main()) | 1489 sys.exit(Main()) |
| OLD | NEW |