prevent requirements from leaking into autorequired objects and creating circular references

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>

Conflicts:
	cdist/test/autorequire/__init__.py
This commit is contained in:
Steven Armstrong 2013-01-18 15:02:43 +01:00 • committed by Nico Schottelius
commit 06fb7491fa
4 changed files with 23 additions and 7 deletions

View file

@ -83,3 +83,9 @@ class AutorequireTestCase(test.CdistTestCase):
self.config.stage_prepare()
# raises CircularDependecyError
self.config.stage_run()
def test_recursive_type(self):
self.context.initial_manifest = os.path.join(self.config.local.manifest_path, 'recursive_type')
self.config.stage_prepare()
# raises CircularDependecyError
self.config.stage_run()

View file

@ -0,0 +1,2 @@
__git foo
require="__git/foo" __git bar

View file

@ -0,0 +1 @@
__package git