mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-03 09:52:19 +08:00
Add test_highest_version_selection.py, example.test.env.yaml and expand utils.py
This commit is contained in:
committed by
Mike McLean
parent
5bdae7a356
commit
6ae9e1aeff
@@ -100,3 +100,14 @@ def clone_and_start_build(repo, pkg_util):
|
||||
pkg_util.cancel(build)
|
||||
except sh.ErrorReturnCode:
|
||||
pass # we don't need to bother with clean-up errors
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def require_koji_resolver(repo, scenario, test_env, mbs):
|
||||
"""Check that koji resolver is present."""
|
||||
stream = repo.modulemd['data']['dependencies'][0]['buildrequires']['platform']
|
||||
platform_build = mbs.get_module_builds(name="platform", stream=stream)[0]
|
||||
resolver = platform_build.get_modulemd()['data']['xmd']['mbs']\
|
||||
.get('koji_tag_with_modules')
|
||||
if not resolver:
|
||||
pytest.skip('koji resolver is not configured.')
|
||||
|
||||
Reference in New Issue
Block a user