Rename spack.architecture.sys_type() to spack.architecture.platform()

This commit is contained in:
Todd Gamblin
2016-06-27 02:19:08 -07:00
parent d899059075
commit 305d5698df
12 changed files with 73 additions and 76 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):