mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 20:10:05 +08:00
get rid of testbuildroot() manage.py cmd
This commit is contained in:
committed by
Nils Philippsen
parent
68e32ee8c7
commit
5c49c7d28b
31
manage.py
31
manage.py
@@ -86,37 +86,6 @@ def testpdc():
|
||||
print ('module was not found')
|
||||
|
||||
|
||||
@manager.command
|
||||
def testbuildroot():
|
||||
""" A helper function to test buildroot creation
|
||||
"""
|
||||
|
||||
# Do a locally namespaced import here to avoid importing py2-only libs in a
|
||||
# py3 runtime.
|
||||
from rida.builder import KojiModuleBuilder #, Builder
|
||||
|
||||
cfg = Config()
|
||||
cfg.koji_profile = "koji"
|
||||
cfg.koji_config = "/etc/rida/koji.conf"
|
||||
cfg.koji_arches = ["x86_64", "i686"]
|
||||
|
||||
mb = KojiModuleBuilder(module="testmodule-1.0", config=cfg, tag="testmodule-1.0") # or By using Builder
|
||||
# mb = Builder(module="testmodule-1.0", backend="koji", config=cfg)
|
||||
|
||||
mb.buildroot_connect()
|
||||
mb.buildroot_add_repos(["fakemodulebuild-1.0-0",])
|
||||
srpm_path = mb.get_disttag_srpm("testmodule-1.0")
|
||||
task_id = mb.build(artifact_name="module-build-macros", source=srpm_path)
|
||||
#task_id = mb.build(artifact_name="fedora-release",
|
||||
# source="git://pkgs.fedoraproject.org/rpms/fedora-release?#b1d65f349dca2f597b278a4aad9e41fb0aa96fc9")
|
||||
#mb.buildroot_add_artifacts(["fedora-release-24-2", ]) # just example with disttag macro
|
||||
#mb.buildroot_ready(artifact="fedora-release-24-2")
|
||||
new_task_id = mb.build(artifact_name="module-build-macros", source=srpm_path)
|
||||
|
||||
assert new_task_id == task_id, "Component was already built. Expected same task_id (%s != %s). Fix it!" % (new_task_id, task_id)
|
||||
|
||||
|
||||
|
||||
@manager.command
|
||||
def upgradedb():
|
||||
""" Upgrades the database schema to the latest revision
|
||||
|
||||
Reference in New Issue
Block a user