/[escript]/trunk/scripts/prepare.py
ViewVC logotype

Diff of /trunk/scripts/prepare.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2253 by jfenwick, Sun Feb 8 23:35:28 2009 UTC revision 2254 by jfenwick, Sun Feb 8 23:40:22 2009 UTC
# Line 260  if not os.path.exists(LOGDIR+"/Success") Line 260  if not os.path.exists(LOGDIR+"/Success")
260    
261  if os.path.exists(LOGDIR+"/Failure"):  if os.path.exists(LOGDIR+"/Failure"):
262      os.system("echo 'Also: the cleanup of work areas failed. "+EXECUTELOCATION+"/"+TOPDIR+" or "+OUTSIDEDIR+"/"+TOPDIR+"' >> "+LOGDIR+"/message\n")      os.system("echo 'Also: the cleanup of work areas failed. "+EXECUTELOCATION+"/"+TOPDIR+" or "+OUTSIDEDIR+"/"+TOPDIR+"' >> "+LOGDIR+"/message\n")
263      os.system("echo '"+SRCMSG+"' >> "LOGDIR+"/message\n")      os.system("echo '"+SRCMSG+"' >> "+LOGDIR+"/message\n")
264      mailcmd="cat "+LOGDIR+"/message | mail -s 'Esys unit tests failed' "+ERRMAIL+"\n"      mailcmd="cat "+LOGDIR+"/message | mail -s 'Esys unit tests failed' "+ERRMAIL+"\n"
265      os.system(mailcmd)      os.system(mailcmd)
266      sys.exit(1)      sys.exit(1)
267  #so we must have succeeded  #so we must have succeeded
268    
269  if cleanupfailure:  if cleanupfailure:
270      os.system("echo '"+SRCMSG+"' >> "LOGDIR+"/message\n")      os.system("echo '"+SRCMSG+"' >> "+LOGDIR+"/message\n")
271      mailcmd="cat "+LOGDIR+"/message | mail -s 'Esys unit tests cleanup failed - tests succeeded' "+ERRMAIL+"\n"      mailcmd="cat "+LOGDIR+"/message | mail -s 'Esys unit tests cleanup failed - tests succeeded' "+ERRMAIL+"\n"
272      res=os.system(mailcmd)      res=os.system(mailcmd)
273      sys.exit(res)      sys.exit(res)
274  else:  else:
275      os.system("echo '"+SRCMSG+"' >> "LOGDIR+"/message\n")        os.system("echo '"+SRCMSG+"' >> "+LOGDIR+"/message\n")  
276      mailcmd="cat "+LOGDIR+"/message | mail -s 'Esys unit tests succeeded' "+ERRMAIL+"\n"      mailcmd="cat "+LOGDIR+"/message | mail -s 'Esys unit tests succeeded' "+ERRMAIL+"\n"
277      res=os.system(mailcmd)      res=os.system(mailcmd)
278      sys.exit(res)      sys.exit(res)

Legend:
Removed from v.2253  
changed lines
  Added in v.2254

  ViewVC Help
Powered by ViewVC 1.1.26