Skip to content

Commit

Permalink
testsuite: use unk mod to ensure !is-loaded test
Browse files Browse the repository at this point in the history
  • Loading branch information
xdelaruelle committed Nov 26, 2017
1 parent 21d0b34 commit d29bf1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/install.00-init/020-module.exp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ foreach shell $shell_list {
testall_cmd "$shell" "module foo" "" "$bad_cmd\n$type_help" 1
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module list -t" "" "$cur_loaded\nnull" 0
testall_cmd "$shell" "module use $contrib_modpath\; module purge\; module load null\; module unload null\; module list -t" "" "$no_loaded" 0
testall_cmd "$shell" "module is-loaded null" "" "" 1
testall_cmd "$shell" "module is-loaded unk" "" "" 1
testall_cmd "$shell" "module use $contrib_modpath\; module load null\; module is-loaded null" "" "" 0
}

Expand All @@ -44,7 +44,7 @@ foreach shell $othlang_list {
testall_cmd_re "$shell" "foo" "^\$" "$bad_cmd\n$type_help.*" 1
testall_cmd "$shell" "use $contrib_modpath:purge:load null:list -t" "" "$cur_loaded\nnull" 0
testall_cmd "$shell" "use $contrib_modpath:purge:load null:unload null:list -t" "" "$no_loaded" 0
testall_cmd_re "$shell" "is-loaded null" "" ".*" 1
testall_cmd_re "$shell" "is-loaded unk" "" ".*" 1
testall_cmd "$shell" "use $contrib_modpath:load null:is-loaded null" "" "" 0
}

Expand Down

0 comments on commit d29bf1e

Please sign in to comment.