summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-04-08 11:18:30 -0700
committerMario Melara <maamelara@gmail.com>2016-04-08 11:18:30 -0700
commit618b3f5f2d149fe3c20f90c0890748c8f3589afb (patch)
treee5b632c0decd19b8e5947388009d727d497b4ed5 /lib
parent277efc1dfbb00117db65918ff22928d42e1194e2 (diff)
downloadspack-618b3f5f2d149fe3c20f90c0890748c8f3589afb.tar.gz
spack-618b3f5f2d149fe3c20f90c0890748c8f3589afb.tar.bz2
spack-618b3f5f2d149fe3c20f90c0890748c8f3589afb.tar.xz
spack-618b3f5f2d149fe3c20f90c0890748c8f3589afb.zip
Changed default to default_target so the tests can pass
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/spec_semantics.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/spack/spack/test/spec_semantics.py b/lib/spack/spack/test/spec_semantics.py
index 0b310488a9..84d8c0edd8 100644
--- a/lib/spack/spack/test/spec_semantics.py
+++ b/lib/spack/spack/test/spec_semantics.py
@@ -308,7 +308,7 @@ class SpecSematicsTest(MockPackagesTest):
def test_constrain_target(self):
platform = spack.architecture.sys_type()
- target = platform.target('default').name
+ target = platform.target('default_target').name
self.check_constrain('libelf='+target, 'libelf='+target, 'libelf='+target)
self.check_constrain('libelf='+target, 'libelf', 'libelf='+target)
@@ -339,7 +339,7 @@ class SpecSematicsTest(MockPackagesTest):
self.check_constrain_changed('libelf', '+debug')
self.check_constrain_changed('libelf', '~debug')
platform = spack.architecture.sys_type()
- self.check_constrain_changed('libelf', '='+platform.target('default').name)
+ self.check_constrain_changed('libelf', '='+platform.target('default_target').name)
def test_constrain_not_changed(self):
@@ -351,8 +351,8 @@ class SpecSematicsTest(MockPackagesTest):
self.check_constrain_not_changed('libelf+debug', '+debug')
self.check_constrain_not_changed('libelf~debug', '~debug')
platform = spack.architecture.sys_type()
- default = platform.target('default').name
- self.check_constrain_not_changed('libelf='+default, '='+default)
+ default_target = platform.target('default_target').name
+ self.check_constrain_not_changed('libelf='+default_target, '='+default_target)
self.check_constrain_not_changed('libelf^foo', 'libelf^foo')
self.check_constrain_not_changed('libelf^foo^bar', 'libelf^foo^bar')
@@ -365,8 +365,8 @@ class SpecSematicsTest(MockPackagesTest):
self.check_constrain_changed('libelf^foo', 'libelf^foo+debug')
self.check_constrain_changed('libelf^foo', 'libelf^foo~debug')
platform = spack.architecture.sys_type()
- default = platform.target('default').name
- self.check_constrain_changed('libelf^foo', 'libelf^foo='+default)
+ default_target = platform.target('default_target').name
+ self.check_constrain_changed('libelf^foo', 'libelf^foo='+default_target)
def test_constrain_dependency_not_changed(self):
@@ -377,6 +377,6 @@ class SpecSematicsTest(MockPackagesTest):
self.check_constrain_not_changed('libelf^foo+debug', 'libelf^foo+debug')
self.check_constrain_not_changed('libelf^foo~debug', 'libelf^foo~debug')
platform = spack.architecture.sys_type()
- default = platform.target('default').name
- self.check_constrain_not_changed('libelf^foo='+default, 'libelf^foo='+default)
+ default_target = platform.target('default_target').name
+ self.check_constrain_not_changed('libelf^foo='+default_target, 'libelf^foo='+default_target)