def run(self): start = time.time() self.log.info("Mashing %s", self.tag) out, err, returncode = util.cmd(self.mash_cmd) self.log.info("Took %s seconds to mash %s", time.time() - start, self.tag) if returncode != 0: self.log.error("There was a problem running mash (%d)" % returncode) self.log.error(out) self.log.error(err) raise Exception("mash failed") else: self.success = True return out, err, returncode
def run(self): start = time.time() self.log.info('Mashing %s', self.tag) out, err, returncode = util.cmd(self.mash_cmd) self.log.info('Took %s seconds to mash %s', time.time() - start, self.tag) if returncode != 0: self.log.error('There was a problem running mash (%d)' % returncode) self.log.error(out) self.log.error(err) raise Exception('mash failed') else: self.success = True return out, err, returncode
def update_comps(self): """ Update our comps git module and merge the latest translations so we can pass it to mash insert into the repodata. """ self.log.info("Updating comps") comps_dir = config.get('comps_dir') comps_url = config.get('comps_url') if not os.path.exists(comps_dir): util.cmd(['git', 'clone', comps_url], os.path.dirname(comps_dir)) if comps_url.startswith('https://'): util.cmd(['git', 'pull'], comps_dir) else: self.log.error('comps_url must start with https://') return util.cmd(['make'], comps_dir)
def update_comps(self): """ Update our comps git module and merge the latest translations so we can pass it to mash insert into the repodata. """ self.log.info("Updating comps") comps_dir = config.get("comps_dir") comps_url = config.get("comps_url") if not os.path.exists(comps_dir): util.cmd(["git", "clone", comps_url], os.path.dirname(comps_dir)) if comps_url.startswith("https://"): util.cmd(["git", "pull"], comps_dir) else: self.log.error("comps_url must start with https://") return util.cmd(["make"], comps_dir)
def test_cmd_failure(self): try: cmd('false') assert False except Exception: pass