buildframework/helium/tools/preparation/ci.ant.xml
changeset 648 d5a8d436d33b
parent 645 b8d81fa19e7d
equal deleted inserted replaced
647:53d1ab72f5bc 648:d5a8d436d33b
    71 # Delete all dirs based on config
    71 # Delete all dirs based on config
    72 for dir_ in delete_dirs:
    72 for dir_ in delete_dirs:
    73     try:
    73     try:
    74         self.log(str("Removing %s" % dir_))
    74         self.log(str("Removing %s" % dir_))
    75         fileutils.rmtree(dir_)
    75         fileutils.rmtree(dir_)
    76     except Exception, exc:
       
    77         self.log(str("ERROR: %s" % exc))
       
    78     except IOException, ioExc:
    76     except IOException, ioExc:
    79         self.log(str("ERROR: %s" % ioExc))
    77         self.log(str("ERROR: %s" % ioExc))
    80 
    78 
    81 # Delete all config files
    79 # Delete all config files
    82 for path_ in found_inputs:
    80 for path_ in found_inputs:
   181         if ccm.session_exists(sessionid, database=database):
   179         if ccm.session_exists(sessionid, database=database):
   182             self.log(str("Yes."))
   180             self.log(str("Yes."))
   183             update_session = False
   181             update_session = False
   184 
   182 
   185     if update_session:
   183     if update_session:
   186         try:
   184         self.log(str("Opening a new session for %s..." % database))
   187             self.log(str("Opening a new session for %s..." % database))
   185         session = nokia.nokiaccm.open_session(database=database, engine=engine, dbpath=dbpath)
   188             session = nokia.nokiaccm.open_session(database=database, engine=engine, dbpath=dbpath)
   186         session.close_on_exit = False        
   189             session.close_on_exit = False        
   187         config[database] = session.addr()
   190             config[database] = session.addr()
       
   191         except Exception, exc:
       
   192             traceback.print_exc()
       
   193             raise exc
       
   194     
   188     
   195 self.log(str("Updating the file %s..." % sessionFile))
   189 self.log(str("Updating the file %s..." % sessionFile))
   196 config.store(open(sessionFile, 'w+'))    
   190 config.store(open(sessionFile, 'w+'))    
   197     </scriptdef>
   191     </scriptdef>
   198 
   192