Index: build/android/devil/utils/reraiser_thread.py |
diff --git a/build/android/devil/utils/reraiser_thread.py b/build/android/devil/utils/reraiser_thread.py |
index 964593b5f348b74665abf8fc01d748a8253db21a..e108fc754fbe9befd62c25dfe1e68f97ef071161 100644 |
--- a/build/android/devil/utils/reraiser_thread.py |
+++ b/build/android/devil/utils/reraiser_thread.py |
@@ -49,6 +49,8 @@ class ReraiserThread(threading.Thread): |
kwargs: dictionary of keyword arguments for callable, defaults to empty. |
name: thread name, defaults to Thread-N. |
""" |
+ if not name and func.__name__ != '<lambda>': |
+ name = func.__name__ |
super(ReraiserThread, self).__init__(name=name) |
if not args: |
args = [] |