summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscript/autobuild.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index 5a7b7bc32c8..65b89d1b40a 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -692,6 +692,11 @@ parser.add_option("", "--restrict-tests", help="run as make test with this TESTS
default='')
def send_email(subject, text, log_tar):
+ if options.email is None:
+ do_print("not sending email because the recipient is not set")
+ do_print("the text content would have been:\n\nSubject: %s\n\nTs" %
+ (subject, text))
+ return
outer = MIMEMultipart()
outer['Subject'] = subject
outer['To'] = options.email