Skip to content

Commit

Permalink
ts: check stickiness prior processing dependent unload
Browse files Browse the repository at this point in the history
  • Loading branch information
xdelaruelle committed Oct 27, 2024
1 parent d826c11 commit 0d56321
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
6 changes: 1 addition & 5 deletions testsuite/modules.50-cmds/460-sticky.exp
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,6 @@ setenv_var __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky

set tserr [msg_unload {sticky/1.0 <S>} $err_stickyunload]\n\n[msg_switch {sticky/1.0 <S>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']
testouterr_cmd_re sh {switch --auto sticky/99} ERR $tserr

set tserr "[msg_unload {sticky/1.0 <S>} [err_prerequn bar/2.0]]

[msg_switch {sticky/1.0 <S>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']"
testouterr_cmd_re sh {switch --no-auto sticky/99} ERR $tserr

set ans [list]
Expand All @@ -522,7 +518,7 @@ lappend ans [list set _LMFILES_ $mp/foo/2.0:$mp/bar/2.0]
lappend ans [list set LOADEDMODULES foo/2.0:bar/2.0]
lappend ans [list unset __MODULES_LMTAG]
lappend ans [list ERR]
set tserr "[msg_unload {sticky/1.0 <S>} [err_deplof bar/2.0] $err_stickyunloadf]
set tserr "[msg_unload {sticky/1.0 <S>} $err_stickyunloadf [err_deplof bar/2.0]]

[msg_switch {sticky/1.0 <S>} sticky/99 $err_path'sticky/99']"
testouterr_cmd_re sh {switch --no-auto -f sticky/99} $ans $tserr
Expand Down
8 changes: 0 additions & 8 deletions testsuite/modules.50-cmds/461-super-sticky.exp
Original file line number Diff line number Diff line change
Expand Up @@ -398,15 +398,7 @@ setenv_var __MODULES_LMPREREQ sticky/1.0&foo|baz:bar/2.0&sticky/1.0

testouterr_cmd_re sh {switch --auto sticky/99} ERR $tserr
testouterr_cmd_re sh {switch --auto -f sticky/1.0 sticky/99} ERR $tserr

set tserr "[msg_unload {sticky/1.0 <sS>} [err_prerequn bar/2.0]]

[msg_switch {sticky/1.0 <sS>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']"
testouterr_cmd_re sh {switch --no-auto sticky/99} ERR $tserr

set tserr "[msg_unload {sticky/1.0 <sS>} [err_deplof bar/2.0] $err_superstickyunload]

[msg_switch {sticky/1.0 <sS>} sticky/99 [err_swoff sticky/1.0] $err_path'sticky/99']"
testouterr_cmd_re sh {switch --no-auto -f sticky/99} ERR $tserr

# switch sticky module within modulefile to a module that does not exist (generic sticky)
Expand Down
7 changes: 4 additions & 3 deletions testsuite/modules.50-cmds/462-sticky-corner.exp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ unsetenv_loaded_module
unsetenv_var __MODULES_LMTAG

setenv_var TESTSUITE_STICKY 1
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky1/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]]
set tserr [msg_unload {sticky1/1.0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]]
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr

setenv_var TESTSUITE_STICKY 2
Expand All @@ -446,6 +446,7 @@ testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr

setenv_var TESTSUITE_STICKY 7
# switched-on module is now resolved prior testing stickiness is preserved
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky1/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]]
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr

setenv_var TESTSUITE_STICKY 8
Expand All @@ -456,7 +457,7 @@ lappend ans [list set LOADEDMODULES sticky0:sticky2/1.0]
lappend ans [list set __MODULES_LMTAG sticky0&auto-loaded&sticky]
set tserr [msg_top_load sticky2/1.0 {} {sticky0} {}]
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky0]]
set tserr [msg_unload {sticky0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky0]]
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr

setenv_var TESTSUITE_STICKY 9
Expand All @@ -468,7 +469,7 @@ lappend ans [list set __MODULES_LMTAG sticky4/sub/1.0&auto-loaded&sticky]
set tserr [msg_top_load sticky2/1.0 {} {sticky4/sub/1.0} {}]
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr

set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky4/sub/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky4/sub/1.0]]
set tserr [msg_unload {sticky4/sub/1.0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky4/sub/1.0]]
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr

setenv_var TESTSUITE_STICKY 10
Expand Down

0 comments on commit 0d56321

Please sign in to comment.