summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-06-27 10:07:03 -0700
committerGitHub <noreply@github.com>2016-06-27 10:07:03 -0700
commit3ea9d1e6650166b2c0379b6d4cdf3498021d43a5 (patch)
treeefe06ff3457e51749d68ccf01e36b3ee8c4e3ee2 /var
parentbf4eeb48b959f6236e05c25b2d3b4d14609ebe65 (diff)
parent99c3ed56fae3b4a70a03a60aa645a282136a025d (diff)
downloadspack-3ea9d1e6650166b2c0379b6d4cdf3498021d43a5.tar.gz
spack-3ea9d1e6650166b2c0379b6d4cdf3498021d43a5.tar.bz2
spack-3ea9d1e6650166b2c0379b6d4cdf3498021d43a5.tar.xz
spack-3ea9d1e6650166b2c0379b6d4cdf3498021d43a5.zip
Merge pull request #1122 from LLNL/bugfix/newarch-sys_type
Bugfix/newarch sys type
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/multimethod/package.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/var/spack/repos/builtin.mock/packages/multimethod/package.py b/var/spack/repos/builtin.mock/packages/multimethod/package.py
index 649afa5945..ca991632dd 100644
--- a/var/spack/repos/builtin.mock/packages/multimethod/package.py
+++ b/var/spack/repos/builtin.mock/packages/multimethod/package.py
@@ -106,17 +106,11 @@ class Multimethod(Package):
#
# 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):