def run(self): LOG.info('Executing tests') cmd = ['testr init', 'testr run tempest.api.identity', 'testr run --parallel tempest.api.compute', 'testr run --parallel tempest.api.image', 'testr run --parallel tempest.api.network'] run_cmd('; '.join(cmd), cwd='/opt/tempest')
def install(self): LOG.info('Installing Tempest') src_dir = '/opt/tempest' if os.path.exists(src_dir): cmd = ['git fetch --all', 'git reset --hard origin/master'] run_cmd('; '.join(cmd), cwd=src_dir) else: src_url = 'https://github.com/openstack/tempest.git' run_cmd('git clone {0} {1}'.format(src_url, src_dir)) touch('/var/log/tempest', 'tempest.log')