def tearDown(self): # Clean up resource tree cleanup_resource_tree.main(self.filename) # Clean up and exit admin session print "admin session: removing session files" s.adminsession.runCmd('icd') s.adminsession.runCmd('irm', ['-rf', s.adminsession.sessionId]) s.admin_down()
def tearDown(self): # revert to original server.config os.system("mv -f %s_orig %s" % (self.serverConfigFile, self.serverConfigFile)) # restart server my_env = os.environ.copy() args = [get_irods_top_level_dir() + '/iRODS/irodsctl', 'restart'] subprocess.Popen(args, env=my_env).communicate() # Close admin session s.admin_down()
def tearDown(self): # revert to original server_config.json os.system("mv -f %s_orig %s" % (self.serverConfigFile, self.serverConfigFile)) # restart server my_env = os.environ.copy() args = [get_irods_top_level_dir() + '/iRODS/irodsctl', 'restart'] subprocess.Popen(args, env=my_env).communicate() # Close admin session s.admin_down()
def tearDown(self): s.adminsession.runCmd('irm', ['-f', self.dest_obj]) s.admin_down()