Merge pull request #1122 from LLNL/bugfix/newarch-sys_type

Bugfix/newarch sys type
This commit is contained in:
Todd Gamblin
2016-06-27 10:07:03 -07:00
committed by GitHub
12 changed files with 88 additions and 74 deletions

View File

@@ -106,17 +106,11 @@ def has_a_default(self):
#
# Make sure we can switch methods on different target
#
# for platform_name in ['cray_xc', 'darwin', 'linux']:
# file_path = join_path(spack.platform_path, platform_name)
# platform_mod = imp.load_source('spack.platforms', file_path + '.py')
# cls = getattr(platform_mod, mod_to_class(platform_name))
# platform = cls()
platform = spack.architecture.sys_type()
platform = spack.architecture.platform()
targets = platform.targets.values()
if len(targets) > 1:
targets = targets[:-1]
for target in targets:
@when('target='+target.name)
def different_by_target(self):