diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-11-20 21:27:56 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-11-20 21:56:37 +0100 |
commit | 4ef7331c2fb8073b2eeba90af1a427bd1f3c811a (patch) | |
tree | 0dc387098d0dcc9b92a56cf738e58552b4ba2426 /tests/test_profile.py | |
parent | 153133c08fb00deba3ef0800060153a54fb949ab (diff) | |
download | gemato-4ef7331c2fb8073b2eeba90af1a427bd1f3c811a.tar.gz |
recursiveloader: Fix adding top-level ignore entries to sub-Manifests
Diffstat (limited to 'tests/test_profile.py')
-rw-r--r-- | tests/test_profile.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_profile.py b/tests/test_profile.py index bf4156f..a19b269 100644 --- a/tests/test_profile.py +++ b/tests/test_profile.py @@ -138,6 +138,19 @@ class EbuildRepositoryTests(TempDirTestCase): "type mismatch for {}".format(f)) return m + def test_regression_top_level_ignore_in_all_manifests(self): + assert 'distfiles' in self.EXPECTED_IGNORE[0] + assert 'dev-foo/Manifest' in self.EXPECTED_MANIFESTS + + m = gemato.recursiveloader.ManifestRecursiveLoader( + os.path.join(self.dir, 'Manifest'), + hashes=['SHA256', 'SHA512'], + allow_create=True, + profile=self.PROFILE()) + m.update_entries_for_directory('') + + self.assertIsNone(m.find_path_entry('dev-foo/distfiles')) + def test_set_loader_options(self): m = gemato.recursiveloader.ManifestRecursiveLoader( os.path.join(self.dir, 'Manifest'), |