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

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

Issue 1156133006: [test] Verbose test runner output on windows. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: presubmit Created 5 years, 7 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
« no previous file with comments | « tools/testrunner/local/execution.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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « tools/testrunner/local/execution.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698