gather: Make devel modules configurable
By default nothing should change. This patch adds a new config option that enables all this new craziness: * it turns of applying module filters at pkgset level * it creates new modules and adds them to the compose Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
06b32b5d80
commit
1a161982c0
5 changed files with 90 additions and 24 deletions
|
|
@ -740,10 +740,11 @@ class TestCreateVariantRepo(PungiTestCase):
|
|||
|
||||
variant = compose.variants['Server']
|
||||
variant.arch_mmds["x86_64"] = {}
|
||||
variant.arch_mmds["x86_64"]["test-f27"] = variant.add_fake_module(
|
||||
variant.arch_mmds["x86_64"]["test:f27:1:2017"] = variant.add_fake_module(
|
||||
"test:f27:1:2017", rpm_nvrs=["pkg-0:1.0.0-1.x86_64"])
|
||||
variant.arch_mmds["x86_64"]["test-f28"] = variant.add_fake_module(
|
||||
variant.arch_mmds["x86_64"]["test:f28:1:2017"] = variant.add_fake_module(
|
||||
"test:f28:1:2017", rpm_nvrs=["pkg-0:2.0.0-1.x86_64"])
|
||||
variant.mmds = list(variant.arch_mmds["x86_64"].values())
|
||||
|
||||
def mocked_modifyrepo_cmd(repodir, mmd_path, **kwargs):
|
||||
modules = Modulemd.Module.new_all_from_file(mmd_path)
|
||||
|
|
@ -784,16 +785,17 @@ class TestCreateVariantRepo(PungiTestCase):
|
|||
variant = compose.variants['Server']
|
||||
variant.arch_mmds["x86_64"] = {
|
||||
"test:f27:2018:cafe": variant.add_fake_module(
|
||||
"test:f27:1:2017",
|
||||
"test:f27:2018:cafe",
|
||||
rpm_nvrs=["bash-0:4.3.30-2.fc21.x86_64"],
|
||||
with_artifacts=True,
|
||||
),
|
||||
"test:f28:2018:beef": variant.add_fake_module(
|
||||
"test:f28:1:2017",
|
||||
"test:f28:2018:beef",
|
||||
rpm_nvrs=["pkg-0:2.0.0-1.x86_64"],
|
||||
with_artifacts=True,
|
||||
),
|
||||
}
|
||||
variant.mmds = list(variant.arch_mmds["x86_64"].values())
|
||||
variant.module_uid_to_koji_tag = {
|
||||
"test:f28:2018:beef": "tag-1",
|
||||
"test:f27:2018:cafe": "tag-2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue