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

Side by Side Diff: tools/test.py

Issue 10833002: Remove unused fields in test.py (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 print "\033[1K\r", 292 print "\033[1K\r",
293 293
294 294
295 class MonochromeProgressIndicator(CompactProgressIndicator): 295 class MonochromeProgressIndicator(CompactProgressIndicator):
296 296
297 def __init__(self, cases): 297 def __init__(self, cases):
298 templates = { 298 templates = {
299 'status_line': "[%(mins)02i:%(secs)02i|%%%(remaining) 4d|+%(passed) 4d|-%( failed) 4d]: %(test)s", 299 'status_line': "[%(mins)02i:%(secs)02i|%%%(remaining) 4d|+%(passed) 4d|-%( failed) 4d]: %(test)s",
300 'stdout': '%s', 300 'stdout': '%s',
301 'stderr': '%s', 301 'stderr': '%s',
302 'clear': lambda last_line_length: ("\r" + (" " * last_line_length) + "\r") ,
303 'max_length': 78
304 } 302 }
305 super(MonochromeProgressIndicator, self).__init__(cases, templates) 303 super(MonochromeProgressIndicator, self).__init__(cases, templates)
306 304
307 def ClearLine(self, last_line_length): 305 def ClearLine(self, last_line_length):
308 print ("\r" + (" " * last_line_length) + "\r"), 306 print ("\r" + (" " * last_line_length) + "\r"),
309 307
310 308
311 PROGRESS_INDICATORS = { 309 PROGRESS_INDICATORS = {
312 'verbose': VerboseProgressIndicator, 310 'verbose': VerboseProgressIndicator,
313 'dots': DotsProgressIndicator, 311 'dots': DotsProgressIndicator,
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 for entry in timed_tests[:20]: 1546 for entry in timed_tests[:20]:
1549 t = FormatTime(entry.duration) 1547 t = FormatTime(entry.duration)
1550 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel())) 1548 sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
1551 index += 1 1549 index += 1
1552 1550
1553 return result 1551 return result
1554 1552
1555 1553
1556 if __name__ == '__main__': 1554 if __name__ == '__main__':
1557 sys.exit(Main()) 1555 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698