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

Side by Side Diff: tools/testrunner/network/endpoint.py

Issue 11035004: Test runner: fix empty patches; better error message for missing test files; correct .gitignore ent… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | « .gitignore ('k') | tools/testrunner/server/work_handler.py » ('j') | 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 suite = suites_dict[t.suite] 101 suite = suites_dict[t.suite]
102 t.suite = suite 102 t.suite = suite
103 suite.tests.append(t) 103 suite.tests.append(t)
104 104
105 suites = [ s for s in suites if len(s.tests) > 0 ] 105 suites = [ s for s in suites if len(s.tests) > 0 ]
106 for s in suites: 106 for s in suites:
107 s.DownloadData() 107 s.DownloadData()
108 108
109 progress_indicator = EndpointProgress(sock, server, ctx) 109 progress_indicator = EndpointProgress(sock, server, ctx)
110 runner = execution.Runner(suites, progress_indicator, ctx) 110 runner = execution.Runner(suites, progress_indicator, ctx)
111 runner.Run(server.jobs) 111 try:
112 runner.Run(server.jobs)
113 except IOError, e:
114 if e.errno == 2:
115 message = ("File not found: %s, maybe you forgot to 'git add' it?" %
116 e.filename)
117 else:
118 message = "%s" % e
119 compression.Send([-1, message], sock)
112 progress_indicator.HasRun(None) # Sentinel to signal the end. 120 progress_indicator.HasRun(None) # Sentinel to signal the end.
113 progress_indicator.sender_lock.acquire() # Released when sending is done. 121 progress_indicator.sender_lock.acquire() # Released when sending is done.
114 progress_indicator.sender_lock.release() 122 progress_indicator.sender_lock.release()
OLDNEW
« no previous file with comments | « .gitignore ('k') | tools/testrunner/server/work_handler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698