| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 def HasRun(self, test, has_unexpected_output): | 124 def HasRun(self, test, has_unexpected_output): |
| 125 if has_unexpected_output: | 125 if has_unexpected_output: |
| 126 if test.output.HasCrashed(): | 126 if test.output.HasCrashed(): |
| 127 outcome = 'CRASH' | 127 outcome = 'CRASH' |
| 128 else: | 128 else: |
| 129 outcome = 'FAIL' | 129 outcome = 'FAIL' |
| 130 else: | 130 else: |
| 131 outcome = 'pass' | 131 outcome = 'pass' |
| 132 print 'Done running %s: %s' % (test.GetLabel(), outcome) | 132 print 'Done running %s: %s' % (test.GetLabel(), outcome) |
| 133 sys.stdout.flush() |
| 133 | 134 |
| 134 def Heartbeat(self): | 135 def Heartbeat(self): |
| 135 print 'Still working...' | 136 print 'Still working...' |
| 136 sys.stdout.flush() | 137 sys.stdout.flush() |
| 137 | 138 |
| 138 | 139 |
| 139 class DotsProgressIndicator(SimpleProgressIndicator): | 140 class DotsProgressIndicator(SimpleProgressIndicator): |
| 140 | 141 |
| 141 def HasRun(self, test, has_unexpected_output): | 142 def HasRun(self, test, has_unexpected_output): |
| 142 total = self.runner.succeeded + len(self.runner.failed) | 143 total = self.runner.succeeded + len(self.runner.failed) |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 "duration": test.duration, | 362 "duration": test.duration, |
| 362 }) | 363 }) |
| 363 | 364 |
| 364 | 365 |
| 365 PROGRESS_INDICATORS = { | 366 PROGRESS_INDICATORS = { |
| 366 'verbose': VerboseProgressIndicator, | 367 'verbose': VerboseProgressIndicator, |
| 367 'dots': DotsProgressIndicator, | 368 'dots': DotsProgressIndicator, |
| 368 'color': ColorProgressIndicator, | 369 'color': ColorProgressIndicator, |
| 369 'mono': MonochromeProgressIndicator | 370 'mono': MonochromeProgressIndicator |
| 370 } | 371 } |
| OLD | NEW |