diff options
-rwxr-xr-x | scripts/check-for-type-punning-warnings.py | 58 |
1 files 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() |