diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-25 09:41:15 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-25 09:41:15 -0700 |
commit | 0229926ec76333b5a197e5fba3beffe7691688b3 (patch) | |
tree | 0d98c5252fde37ee725d4c39f203da648802d39a | |
parent | 1a7e2ade1a907a3695e91d4be1e1ff3254085b0a (diff) | |
download | portage-0229926ec76333b5a197e5fba3beffe7691688b3.tar.gz portage-0229926ec76333b5a197e5fba3beffe7691688b3.tar.bz2 portage-0229926ec76333b5a197e5fba3beffe7691688b3.zip |
test_config: test PORTDIR default masters
-rw-r--r-- | pym/portage/tests/ebuild/test_config.py | 5 |
1 files changed, 5 insertions, 0 deletions
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) |