Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac77092 + 6cd780e commit 11e27f0Copy full SHA for 11e27f0
1 file changed
extra/shutils/regressiontest.py
@@ -30,6 +30,10 @@
30
SUBJECT = "Regression test results on %s using revision %s" % (TIME, REVISION)
31
32
def prepare_email(content):
33
+ global FROM
34
+ global TO
35
+ global SUBJECT
36
+
37
msg = MIMEMultipart()
38
msg["Subject"] = SUBJECT
39
msg["From"] = FROM
@@ -40,6 +44,10 @@ def prepare_email(content):
40
44
return msg
41
45
42
46
def send_email(msg):
47
+ global SMTP_SERVER
48
+ global SMTP_PORT
49
+ global SMTP_TIMEOUT
50
43
51
try:
52
s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)
53
#s.set_debuglevel(1)
@@ -50,6 +58,8 @@ def send_email(msg):
58
print "Failure to send email: %s" % str(e)
59
60
def main():
61
62
63
content = ""
54
64
test_counts = []
55
65
attachments = {}
0 commit comments