summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/oe-build-perf-report-email.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/contrib/oe-build-perf-report-email.py b/scripts/contrib/oe-build-perf-report-email.py
index 81b58ab020..055a7b12cf 100755
--- a/scripts/contrib/oe-build-perf-report-email.py
+++ b/scripts/contrib/oe-build-perf-report-email.py
@@ -21,6 +21,7 @@ import pwd
21import re 21import re
22import shutil 22import shutil
23import smtplib 23import smtplib
24import socket
24import subprocess 25import subprocess
25import sys 26import sys
26import tempfile 27import tempfile
@@ -211,7 +212,8 @@ def send_email(text_fn, html_fn, subject, recipients):
211 raise ReportError("Neither plain text nor html body specified") 212 raise ReportError("Neither plain text nor html body specified")
212 213
213 full_name = pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0] 214 full_name = pwd.getpwuid(os.getuid()).pw_gecos.split(',')[0]
214 email = os.environ.get('EMAIL', os.getlogin()) 215 email = os.environ.get('EMAIL',
216 '{}@{}'.format(os.getlogin(), socket.getfqdn()))
215 msg['From'] = "{} <{}>".format(full_name, email) 217 msg['From'] = "{} <{}>".format(full_name, email)
216 msg['To'] = ', '.join(recipients) 218 msg['To'] = ', '.join(recipients)
217 msg['Subject'] = subject 219 msg['Subject'] = subject