diff options
Diffstat (limited to 'scripts/check-for-type-punning-warnings.py')
-rwxr-xr-x | scripts/check-for-type-punning-warnings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/check-for-type-punning-warnings.py b/scripts/check-for-type-punning-warnings.py index 93f564d2..cf4f7136 100755 --- a/scripts/check-for-type-punning-warnings.py +++ b/scripts/check-for-type-punning-warnings.py @@ -21,7 +21,8 @@ for log in glob.glob('/var/www/auto-build/' + date + '/logs/20*.txt'): .replace('/Users/pd/auto-build/', '')) f.close() -lf = open('/tmp/'+outputfilename, 'w') +outputfile = '/tmp/' + outputfilename +lf = open(outputfile, 'w') for line in logoutput: lf.write(line) lf.close() @@ -42,7 +43,7 @@ mailoutput.append('http://autobuild.puredata.info/auto-build/' + date + '/logs/' # upload the log file to the autobuild website rsyncfile = 'rsync://128.238.56.50/upload/' + date + '/logs/' + outputfilename try: - p = subprocess.Popen(['rsync', '-ax', '/tmp/'+outputfilename, rsyncfile], + p = subprocess.Popen(['rsync', '-ax', outputfile, rsyncfile], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).wait() except: mailoutput.append('rsync upload of the log failed!\n') |