In socInstaller.py, open the log files *before* using it.

This commit is contained in:
Jean-Paul Chaput 2016-08-10 12:07:40 +02:00
parent f7e981a840
commit a19bfa2698
1 changed files with 5 additions and 4 deletions

View File

@ -398,7 +398,8 @@ class Report ( object ):
for attachement in self.attachements:
self.message.attach( attachement )
print "Sending mail report to <%s>" % self.conf.receivers
print "Sending mail report to:"
for receiver in self.conf.receivers: print ' <%s>' % receiver
session = smtplib.SMTP( 'localhost' )
session.sendmail( self.conf.sender, self.conf.receivers, self.message.as_string() )
session.quit()
@ -434,6 +435,9 @@ try:
if options.rmSource or options.rmAll: conf.rmSource = True
if options.rmBuild or options.rmAll: conf.rmBuild = True
if conf.doBuild: conf.openLog( 'build' )
if conf.doBenchs: conf.openLog( 'benchs' )
gitSupports = []
for supportRepo in conf.supportRepos:
gitSupports.append( GitRepository( supportRepo, conf.srcDir+'/support' ) )
@ -472,9 +476,6 @@ try:
, ' <%s>' % ccbBin
] )
if conf.doBuild: conf.openLog( 'build' )
if conf.doBenchs: conf.openLog( 'benchs' )
buildCommand = '%s --root=%s --project=support --project=coriolis --project=chams --make="-j%%d install" %%s' \
% (ccbBin,conf.rootDir)
benchsCommand = 'cd %s/benchs && ./bin/go.sh clean && ./bin/go.sh lvx' \