Skip to content

Commit

Permalink
more adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
bdamele committed Jan 18, 2013
1 parent c61ee5e commit 7c7b608
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extra/shutils/regressiontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
SUBJECT = "Regression test results on %s using revision %s" % (TIME, REVISION)

def prepare_email(content):
global FROM
global TO
global SUBJECT

msg = MIMEMultipart()
msg["Subject"] = SUBJECT
msg["From"] = FROM
Expand All @@ -40,6 +44,10 @@ def prepare_email(content):
return msg

def send_email(msg):
global SMTP_SERVER
global SMTP_PORT
global SMTP_TIMEOUT

try:
s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)
#s.set_debuglevel(1)
Expand All @@ -50,6 +58,8 @@ def send_email(msg):
print "Failure to send email: %s" % str(e)

def main():
global SUBJECT

content = ""
test_counts = []
attachments = {}
Expand Down

0 comments on commit 7c7b608

Please sign in to comment.