def test_module(self):
    conf = self.config['module_test']
    cwd = os.path.join(self.directory, conf['directory'])
    cmd = ['make', '-f', conf['makefile'], conf['recipe']]
    logging.info(('attempting to run %s in %s' % (cmd, cwd)))
    try:
        subprocess.run(cmd, cwd=cwd, check=True)
    except subprocess.CalledProcessError as e:
        logging.error(e)
        exit(1)
    logging.info('test pass')
def test_module(self):
    conf = self.config['module_test']
    cwd = os.path.join(self.directory, conf['directory'])
    cmd = ['make', '-f', conf['makefile'], conf['recipe']]
    logging.info(('attempting to run %s in %s' % (cmd, cwd)))
    try:
        subprocess.run(cmd, cwd=cwd, check=True)
    except subprocess.CalledProcessError as e:
        logging.error(e)
        exit(1)
    logging.info('test pass')