From: Zac Medico Date: Tue, 25 Oct 2011 16:41:15 +0000 (-0700) Subject: test_config: test PORTDIR default masters X-Git-Tag: v2.2.0_alpha72~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0229926ec76333b5a197e5fba3beffe7691688b3;p=portage.git test_config: test PORTDIR default masters --- diff --git a/pym/portage/tests/ebuild/test_config.py b/pym/portage/tests/ebuild/test_config.py index 6eb13610f..ea641925e 100644 --- a/pym/portage/tests/ebuild/test_config.py +++ b/pym/portage/tests/ebuild/test_config.py @@ -238,6 +238,11 @@ class ConfigTestCase(TestCase): playground = ResolverPlayground(ebuilds=ebuilds, repo_configs=repo_configs, distfiles=distfiles) + new_repo_config = playground.settings.repositories.prepos['new_repo'] + self.assertTrue(len(new_repo_config.masters) > 0, "new_repo has no default master") + self.assertEqual(new_repo_config.masters[0].user_location, playground.portdir, + "new_repo default master is not PORTDIR") + new_manifest_file = os.path.join(playground.repo_dirs["new_repo"], "dev-libs", "A", "Manifest") self.assertEqual(os.path.exists(new_manifest_file), False)