def test_20_run__localhost(self): ctx = dict(repos=mk_local_repos(self.workdir), ) self.assertTrue(TT.run(ctx)) for dn in ("fedora/18", "fedora/19", "rhel/6"): for d in ("x86_64", "i386", "sources"): self.assertTrue(os.path.join(self.workdir, "yum", dn, d))
def test_30_run__localhost_w_genconf(self): return # Wait for test cases fixes of myrepo.commands.genconf.*. builddir = os.path.join(self.workdir, "build") repos = mk_local_repos(self.workdir) ctx = dict(repos=repos, fullname="John Doe", email="*****@*****.**", workdir=builddir, tpaths=C.template_paths(), genconf=True) def expected_dirs(repo): return [os.path.join(repo.destdir, a) for a in repo.archs + ["sources"]] self.assertTrue(TT.run(ctx)) for repo in repos: for d in expected_dirs(repo): self.assertTrue(os.path.exists(d), "Failed to create " + d)