From 5c49c7d28b8013bf9f0fb6291f6b62f6594e298b Mon Sep 17 00:00:00 2001 From: Lubos Kocman Date: Mon, 22 Aug 2016 16:03:14 +0200 Subject: [PATCH] get rid of testbuildroot() manage.py cmd --- manage.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/manage.py b/manage.py index a650fead..92210ae5 100644 --- a/manage.py +++ b/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