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:
parent
cb829ec8d0
commit
06fb7491fa
4 changed files with 23 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
2
cdist/test/autorequire/fixtures/conf/manifest/recursive_type
Executable file
2
cdist/test/autorequire/fixtures/conf/manifest/recursive_type
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
__git foo
|
||||
require="__git/foo" __git bar
|
||||
1
cdist/test/autorequire/fixtures/conf/type/__git/manifest
Normal file
1
cdist/test/autorequire/fixtures/conf/type/__git/manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
__package git
|
||||
Loading…
Add table
Add a link
Reference in a new issue