aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-for-type-punning-warnings.py
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-07 23:39:46 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-07 23:39:46 +0000
commitbf6c5dd8702a43bfcc46e77dee425e536b1ec828 (patch)
treefe0319cd6df8e1ec7fa61007a5dfc7d4846765ff /scripts/check-for-type-punning-warnings.py
parent1483199f4d30d5205ac520d30c280a2c5ff15143 (diff)
fixed log file name for rsync
svn path=/trunk/; revision=15542
Diffstat (limited to 'scripts/check-for-type-punning-warnings.py')
-rwxr-xr-xscripts/check-for-type-punning-warnings.py5
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')