def setUp(self): self.root = tempfile.mkdtemp() self.appcfgmgr = appcfgmgr.AppCfgMgr(root=self.root) self.cache = self.appcfgmgr.tm_env.cache_dir self.apps = self.appcfgmgr.tm_env.apps_dir self.running = self.appcfgmgr.tm_env.running_dir self.cleanup = self.appcfgmgr.tm_env.cleanup_dir
def setUp(self): self.root = tempfile.mkdtemp() self.cache = os.path.join(self.root, 'cache') self.apps = os.path.join(self.root, 'apps') self.running = os.path.join(self.root, 'running') self.cleanup = os.path.join(self.root, 'cleanup') for tmp_dir in [self.cache, self.apps, self.running, self.cleanup]: os.mkdir(tmp_dir) self.appcfgmgr = appcfgmgr.AppCfgMgr(root=self.root) self.appcfgmgr.tm_env.root = self.root self.appcfgmgr.tm_env.cache_dir = self.cache self.appcfgmgr.tm_env.apps_dir = self.apps self.appcfgmgr.tm_env.running_dir = self.running self.appcfgmgr.tm_env.cleanup_dir = self.cleanup
def run(approot, runtime): """Starts appcfgmgr process.""" mgr = appcfgmgr.AppCfgMgr(approot, runtime) mgr.run()
def run(approot, runtime, runtime_param=None): """Starts appcfgmgr process.""" mgr = appcfgmgr.AppCfgMgr(approot, runtime, runtime_param) mgr.run()