summaryrefslogtreecommitdiff
path: root/tests/test_profile.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-11-15 17:45:11 +0100
committerMichał Górny <mgorny@gentoo.org>2017-11-15 17:45:11 +0100
commit23aed48b4c43cc7373d84054b43b607cc9b6e0fb (patch)
tree44109c873cf05f9adb69be0f38cf11fa6fe2f996 /tests/test_profile.py
parent1b2aa500ac7f32f8931097a9a4c222d842b7f856 (diff)
downloadgemato-23aed48b4c43cc7373d84054b43b607cc9b6e0fb.tar.gz
profile: Include standard IGNORE entries in new Manifests
Diffstat (limited to 'tests/test_profile.py')
-rw-r--r--tests/test_profile.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_profile.py b/tests/test_profile.py
index 50e1a53..0a7e4d9 100644
--- a/tests/test_profile.py
+++ b/tests/test_profile.py
@@ -97,6 +97,12 @@ class EbuildRepositoryTests(TempDirTestCase):
}
FILES = dict.fromkeys(EXPECTED_TYPES, u'')
+ EXPECTED_IGNORE = [
+ 'distfiles',
+ 'local',
+ 'packages',
+ ]
+
def test_get_entry_type_for_path(self):
p = self.PROFILE()
for f, expt in self.EXPECTED_TYPES.items():
@@ -120,6 +126,11 @@ class EbuildRepositoryTests(TempDirTestCase):
for f in self.EXPECTED_MANIFESTS:
self.assertEqual(m.find_path_entry(f).tag, 'MANIFEST',
"type mismatch for {}".format(f))
+ for f in self.EXPECTED_IGNORE:
+ self.assertIsNotNone(m.find_path_entry(f),
+ "missing IGNORE entry for {}".format(f))
+ self.assertEqual(m.find_path_entry(f).tag, 'IGNORE',
+ "type mismatch for {}".format(f))
return m
def test_set_loader_options(self):