def got_hosts( modified_hosts ): try: b = Builder( self.doctrine_dir, tdir, os.path.join(tdir, 'test_build_temp') ) b.build_dist( modified_hosts ) b.cleanup() except ProfigureException, e: print 'Error in doctrine: ' + str(e) print 'Test aborted.' return
def got_hosts( modified_hosts ): print 'apply_config: modified hosts = ', modified_hosts try: b = Builder( self.repository, self.dist_dir ) b.build_dist( modified_hosts ) b.cleanup() except Exception, e: import traceback traceback.print_exc() #return def try_rebuild(_): try: b = Builder( self.repository, self.dist_dir ) b.build_dist( modified_hosts ) except: pass raise Exception('Failed to build distribution files: ' + str(e)) dreset = self.set_revision( orig_rev ) dreset.addCallback( try_rebuild ) return dreset