summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoralalazo <massimiliano.culpo@googlemail.com>2016-06-04 16:18:15 +0200
committeralalazo <massimiliano.culpo@googlemail.com>2016-06-04 16:18:15 +0200
commit408aa10210384490348d997069dce02fe61d336d (patch)
treeb2a25a534c8a8427de1efb16855b2da3e5dd6f7f /lib
parenta3f39c23157cd094d50b3b661be6574cd1814305 (diff)
downloadspack-408aa10210384490348d997069dce02fe61d336d.tar.gz
spack-408aa10210384490348d997069dce02fe61d336d.tar.bz2
spack-408aa10210384490348d997069dce02fe61d336d.tar.xz
spack-408aa10210384490348d997069dce02fe61d336d.zip
unit test : whitelist
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/modules.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/test/modules.py b/lib/spack/spack/test/modules.py
index d76e0cd054..098777c48b 100644
--- a/lib/spack/spack/test/modules.py
+++ b/lib/spack/spack/test/modules.py
@@ -84,7 +84,8 @@ configuration_alter_environment = {
configuration_blacklist = {
'enable': ['tcl'],
'tcl': {
- 'blacklist': ['callpath'],
+ 'whitelist': ['zmpi'],
+ 'blacklist': ['callpath', 'mpi'],
'all': {
'autoload': 'direct'
}
@@ -207,6 +208,7 @@ class TclTests(MockPackagesTest):
spack.modules.CONFIGURATION = configuration_blacklist
spec = spack.spec.Spec('mpileaks arch=x86-linux')
content = self.get_modulefile_content(spec)
+ print('\n'.join(content))
self.assertEqual(len([x for x in content if 'is-loaded' in x]), 1)
self.assertEqual(len([x for x in content if 'module load ' in x]), 1)