summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-07-18 02:03:45 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2018-07-17 17:03:45 -0700
commit33aa06e1cff4911f59d13b23f6591f797c38e422 (patch)
treee062ae705f32d2fd1e5d12145fe904dc40f19caa /lib
parent111512ce7b6ceacdfd2b066b332743ec72ead989 (diff)
downloadspack-33aa06e1cff4911f59d13b23f6591f797c38e422.tar.gz
spack-33aa06e1cff4911f59d13b23f6591f797c38e422.tar.bz2
spack-33aa06e1cff4911f59d13b23f6591f797c38e422.tar.xz
spack-33aa06e1cff4911f59d13b23f6591f797c38e422.zip
shell: fixed a typo in spack --print-shell-vars (#8732)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/main.py4
-rw-r--r--lib/spack/spack/test/cmd/print_shell_vars.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/spack/spack/main.py b/lib/spack/spack/main.py
index 08c293b6c0..324012d494 100644
--- a/lib/spack/spack/main.py
+++ b/lib/spack/spack/main.py
@@ -589,9 +589,9 @@ def print_setup_info(*info):
if 'modules' in info:
specs = spack.store.db.query('environment-modules')
if specs:
- shell_set('module_prefix', specs[-1].prefix)
+ shell_set('_sp_module_prefix', specs[-1].prefix)
else:
- shell_set('module_prefix', 'not_installed')
+ shell_set('_sp_module_prefix', 'not_installed')
def main(argv=None):
diff --git a/lib/spack/spack/test/cmd/print_shell_vars.py b/lib/spack/spack/test/cmd/print_shell_vars.py
index 45019d9178..cc02543791 100644
--- a/lib/spack/spack/test/cmd/print_shell_vars.py
+++ b/lib/spack/spack/test/cmd/print_shell_vars.py
@@ -32,7 +32,7 @@ def test_print_shell_vars_sh(capsys):
assert "_sp_sys_type=" in out
assert "_sp_tcl_root=" in out
assert "_sp_lmod_root=" in out
- assert "module_prefix" not in out
+ assert "_sp_module_prefix" not in out
def test_print_shell_vars_csh(capsys):
@@ -42,7 +42,7 @@ def test_print_shell_vars_csh(capsys):
assert "set _sp_sys_type = " in out
assert "set _sp_tcl_root = " in out
assert "set _sp_lmod_root = " in out
- assert "set module_prefix = " not in out
+ assert "set _sp_module_prefix = " not in out
def test_print_shell_vars_sh_modules(capsys):
@@ -52,7 +52,7 @@ def test_print_shell_vars_sh_modules(capsys):
assert "_sp_sys_type=" in out
assert "_sp_tcl_root=" in out
assert "_sp_lmod_root=" in out
- assert "module_prefix=" in out
+ assert "_sp_module_prefix=" in out
def test_print_shell_vars_csh_modules(capsys):
@@ -62,4 +62,4 @@ def test_print_shell_vars_csh_modules(capsys):
assert "set _sp_sys_type = " in out
assert "set _sp_tcl_root = " in out
assert "set _sp_lmod_root = " in out
- assert "set module_prefix = " in out
+ assert "set _sp_module_prefix = " in out