From cb23e4c2b13adfb7c4ab6d603d4067460231d4f3 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 30 Dec 2011 20:32:07 +0000 Subject: comment out section that sends log in an email svn path=/trunk/; revision=15858 --- scripts/check-for-type-punning-warnings.py | 58 +++++++++++++++--------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/scripts/check-for-type-punning-warnings.py b/scripts/check-for-type-punning-warnings.py index 68e99614..4a1e2c04 100755 --- a/scripts/check-for-type-punning-warnings.py +++ b/scripts/check-for-type-punning-warnings.py @@ -28,32 +28,32 @@ for line in logoutput: lf.write(line) lf.close() -# make the email report -fromaddr = 'pd@pdlab.idmi.poly.edu' -toaddr = 'hans@at.or.at' -mailoutput = [] -mailoutput.append('From: ' + fromaddr + '\n') -mailoutput.append('To: ' + toaddr + '\n') -mailoutput.append('Subject: type-punning warnings ' + date + '\n\n\n') -mailoutput.append('______________________________________________________________________\n\n') -mailoutput.append('Complete log:\n') -mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/' - + outputfilename + '\n') - - -# upload the log file to the autobuild website -rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename -cmd = ['rsync', '-axv', outputfile, rsyncfile] -mailoutput.append(' '.join(cmd) + '\n') -p = subprocess.Popen(cmd, - shell=False, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) -p.wait() -mailoutput.append(''.join(p.stdout.readlines())) -mailoutput.append(''.join(p.stderr.readlines())) - -mailoutput.append('______________________________________________________________________\n\n') -server = smtplib.SMTP('in1.smtp.messagingengine.com') -server.sendmail(fromaddr, toaddr, ''.join(mailoutput + logoutput)) -server.quit() +# # make the email report +# fromaddr = 'pd@pdlab.idmi.poly.edu' +# toaddr = 'hans@at.or.at' +# mailoutput = [] +# mailoutput.append('From: ' + fromaddr + '\n') +# mailoutput.append('To: ' + toaddr + '\n') +# mailoutput.append('Subject: type-punning warnings ' + date + '\n\n\n') +# mailoutput.append('______________________________________________________________________\n\n') +# mailoutput.append('Complete log:\n') +# mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/' +# + outputfilename + '\n') + + +# # upload the log file to the autobuild website +# rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename +# cmd = ['rsync', '-axv', outputfile, rsyncfile] +# mailoutput.append(' '.join(cmd) + '\n') +# p = subprocess.Popen(cmd, +# shell=False, +# stdout=subprocess.PIPE, +# stderr=subprocess.PIPE) +# p.wait() +# mailoutput.append(''.join(p.stdout.readlines())) +# mailoutput.append(''.join(p.stderr.readlines())) + +# mailoutput.append('______________________________________________________________________\n\n') +# server = smtplib.SMTP('in1.smtp.messagingengine.com') +# server.sendmail(fromaddr, toaddr, ''.join(mailoutput + logoutput)) +# server.quit() -- cgit v1.2.1