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

Unified Diff: run_test_cases.py

Issue 11154011: Improve exception handling. (Closed) Base URL: https://git.chromium.org/chromium/tools/swarm_client.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trace_inputs.py » ('j') | trace_inputs.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: run_test_cases.py
diff --git a/run_test_cases.py b/run_test_cases.py
index 2520cc00676719b985eb5c9f54ad907b47e0b65b..674b5edb2e342dd81e7379b0b2a9d0339dc89cb6 100755
--- a/run_test_cases.py
+++ b/run_test_cases.py
@@ -280,12 +280,12 @@ class ThreadPool(object):
else:
self._tasks.join()
out = []
+ # Look for exceptions.
for w in self._workers:
if w.exceptions:
raise w.exceptions[0][0], w.exceptions[0][1], w.exceptions[0][2]
out.extend(w.outputs)
w.outputs = []
- # Look for exceptions.
return out
def close(self):
« no previous file with comments | « no previous file | trace_inputs.py » ('j') | trace_inputs.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698