Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
33aa06e1
Commit
33aa06e1
authored
6 years ago
by
Massimiliano Culpo
Committed by
Todd Gamblin
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
shell: fixed a typo in spack --print-shell-vars (#8732)
parent
111512ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/main.py
+2
-2
2 additions, 2 deletions
lib/spack/spack/main.py
lib/spack/spack/test/cmd/print_shell_vars.py
+4
-4
4 additions, 4 deletions
lib/spack/spack/test/cmd/print_shell_vars.py
with
6 additions
and
6 deletions
lib/spack/spack/main.py
+
2
−
2
View file @
33aa06e1
...
@@ -589,9 +589,9 @@ def shell_set(var, value):
...
@@ -589,9 +589,9 @@ def shell_set(var, value):
if
'
modules
'
in
info
:
if
'
modules
'
in
info
:
specs
=
spack
.
store
.
db
.
query
(
'
environment-modules
'
)
specs
=
spack
.
store
.
db
.
query
(
'
environment-modules
'
)
if
specs
:
if
specs
:
shell_set
(
'
module_prefix
'
,
specs
[
-
1
].
prefix
)
shell_set
(
'
_sp_
module_prefix
'
,
specs
[
-
1
].
prefix
)
else
:
else
:
shell_set
(
'
module_prefix
'
,
'
not_installed
'
)
shell_set
(
'
_sp_
module_prefix
'
,
'
not_installed
'
)
def
main
(
argv
=
None
):
def
main
(
argv
=
None
):
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/test/cmd/print_shell_vars.py
+
4
−
4
View file @
33aa06e1
...
@@ -32,7 +32,7 @@ def test_print_shell_vars_sh(capsys):
...
@@ -32,7 +32,7 @@ def test_print_shell_vars_sh(capsys):
assert
"
_sp_sys_type=
"
in
out
assert
"
_sp_sys_type=
"
in
out
assert
"
_sp_tcl_root=
"
in
out
assert
"
_sp_tcl_root=
"
in
out
assert
"
_sp_lmod_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
):
def
test_print_shell_vars_csh
(
capsys
):
...
@@ -42,7 +42,7 @@ 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_sys_type =
"
in
out
assert
"
set _sp_tcl_root =
"
in
out
assert
"
set _sp_tcl_root =
"
in
out
assert
"
set _sp_lmod_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
):
def
test_print_shell_vars_sh_modules
(
capsys
):
...
@@ -52,7 +52,7 @@ 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_sys_type=
"
in
out
assert
"
_sp_tcl_root=
"
in
out
assert
"
_sp_tcl_root=
"
in
out
assert
"
_sp_lmod_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
):
def
test_print_shell_vars_csh_modules
(
capsys
):
...
@@ -62,4 +62,4 @@ 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_sys_type =
"
in
out
assert
"
set _sp_tcl_root =
"
in
out
assert
"
set _sp_tcl_root =
"
in
out
assert
"
set _sp_lmod_root =
"
in
out
assert
"
set _sp_lmod_root =
"
in
out
assert
"
set module_prefix =
"
in
out
assert
"
set
_sp_
module_prefix =
"
in
out
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment