concretization: regression test for constrain() with deps

- ensure that `Spec('foo').constrain('foo ^bar')` works
- prior to stacks implementation, this constraint would have done nothing.
This commit is contained in:
Gregory Becker 2019-04-02 19:22:15 -07:00 committed by Todd Gamblin
parent 12c8996294
commit 6cfbfcc967

View File

@ -695,6 +695,7 @@ def test_constrain_dependency_changed(self):
check_constrain_changed('libelf^foo%gcc', 'libelf^foo%gcc@4.5')
check_constrain_changed('libelf^foo', 'libelf^foo+debug')
check_constrain_changed('libelf^foo', 'libelf^foo~debug')
check_constrain_changed('libelf', '^foo')
platform = spack.architecture.platform()
default_target = platform.target('default_target').name