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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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() |
OLD | NEW |