Skip to content

Commit 068b59a

Browse files
committed
ts: adapt for provided-alias addition to {avail,spider}_output
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent 2e23d4f commit 068b59a

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

testsuite/modules.70-maint/220-config.exp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ array set configvalid [list\
191191
advanced_version_spec {0 1}\
192192
auto_handling {0 1}\
193193
avail_indepth {0 1}\
194-
avail_output {modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via}\
195-
avail_terse_output {modulepath alias dirwsym indesym sym tag key hidden variant variantifspec}\
194+
avail_output {modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via}\
195+
avail_terse_output {modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec}\
196196
cache_buffer_bytes {4096 1000000}\
197197
cache_expiry_secs {0 31536000}\
198198
collection_pin_version {0 1}\
@@ -222,8 +222,8 @@ array set configvalid [list\
222222
silent_shell_debug {0 1}\
223223
source_cache {0 1}\
224224
spider_indepth {0 1}\
225-
spider_output {modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via}\
226-
spider_terse_output {modulepath alias dirwsym indesym sym tag key hidden variant variantifspec}\
225+
spider_output {modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via}\
226+
spider_terse_output {modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec}\
227227
sticky_purge {error warning silent}\
228228
term_background {dark light}\
229229
term_width {0 1000}\

testsuite/modules.70-maint/360-avail_output.exp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ testouterr_cmd sh {ml -o sym -j foo/1.0} ERR "$error_msgs: Unsupported option '-
8989

9090
# invalid value set
9191
set tserr_invalid_output_val "$error_msgs: Invalid element in value list for '--output' option on avail sub-command
92-
Allowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
92+
Allowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
9393
set tserr_invalid_o_val "$error_msgs: Invalid element in value list for '-o' option on avail sub-command
94-
Allowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
94+
Allowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
9595
testouterr_cmd sh {avail --output=foo foo} ERR $tserr_invalid_output_val
9696
testouterr_cmd sh {avail --output=sym,alias foo} ERR $tserr_invalid_output_val
9797
testouterr_cmd sh {avail --output="sym alias" foo} ERR $tserr_invalid_output_val
@@ -136,9 +136,9 @@ if {[cmpversion $tclsh_version 8.6] == -1} {
136136
testouterr_cmd_re sh {load output/1.0} ERR [escre [msg_load output/1.0 [msg_moderr {Missing value for '--output' option} {module unload --not-req --output bar<EXM>} $mp/output/1.0 3]]]
137137

138138
setenv_var TESTSUITE_OUTPUT_INMODFILE 20
139-
testouterr_cmd_re sh {load output/1.0} ERR [escre [msg_load output/1.0 [msg_moderr "Invalid element in value list for '--output' option on avail sub-command\nAllowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail --output=header foo/1.0<EXM>} $mp/output/1.0 3]]]
139+
testouterr_cmd_re sh {load output/1.0} ERR [escre [msg_load output/1.0 [msg_moderr "Invalid element in value list for '--output' option on avail sub-command\nAllowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail --output=header foo/1.0<EXM>} $mp/output/1.0 3]]]
140140
setenv_var TESTSUITE_OUTPUT_INMODFILE 21
141-
testouterr_cmd_re sh {load output/1.0} ERR [escre [msg_load output/1.0 [msg_moderr "Invalid element in value list for '-o' option on avail sub-command\nAllowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail -o sym,alias foo/1.0<EXM>} $mp/output/1.0 3]]]
141+
testouterr_cmd_re sh {load output/1.0} ERR [escre [msg_load output/1.0 [msg_moderr "Invalid element in value list for '-o' option on avail sub-command\nAllowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail -o sym,alias foo/1.0<EXM>} $mp/output/1.0 3]]]
142142

143143
} else {
144144

@@ -165,9 +165,9 @@ if {[cmpversion $tclsh_version 8.6] == -1} {
165165
testouterr_cmd sh {load output/1.0} ERR [msg_load output/1.0 [msg_moderr {Missing value for '--output' option} {module unload --not-req --output bar} $mp/output/1.0 15]]
166166

167167
setenv_var TESTSUITE_OUTPUT_INMODFILE 20
168-
testouterr_cmd sh {load output/1.0} ERR [msg_load output/1.0 [msg_moderr "Invalid element in value list for '--output' option on avail sub-command\nAllowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail --output=header foo/1.0} $mp/output/1.0 24]]
168+
testouterr_cmd sh {load output/1.0} ERR [msg_load output/1.0 [msg_moderr "Invalid element in value list for '--output' option on avail sub-command\nAllowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail --output=header foo/1.0} $mp/output/1.0 24]]
169169
setenv_var TESTSUITE_OUTPUT_INMODFILE 21
170-
testouterr_cmd sh {load output/1.0} ERR [msg_load output/1.0 [msg_moderr "Invalid element in value list for '-o' option on avail sub-command\nAllowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail -o sym,alias foo/1.0} $mp/output/1.0 25]]
170+
testouterr_cmd sh {load output/1.0} ERR [msg_load output/1.0 [msg_moderr "Invalid element in value list for '-o' option on avail sub-command\nAllowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')" {module avail -o sym,alias foo/1.0} $mp/output/1.0 25]]
171171
}
172172

173173
unsetenv_var TESTSUITE_OUTPUT_INMODFILE
@@ -521,7 +521,7 @@ $modpath.spider1:
521521
moda/1 <L>
522522
moda/2"
523523
testouterr_cmd sh {avail -t mod} OK $tserr
524-
testouterr_cmd sh {avail -t -o +via mod} ERR "$error_msgs: Invalid element in value list for '-o' option on avail sub-command\n Allowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec (separated by ':')"
524+
testouterr_cmd sh {avail -t -o +via mod} ERR "$error_msgs: Invalid element in value list for '-o' option on avail sub-command\n Allowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec (separated by ':')"
525525

526526
# same module in different modulepath, one of them loaded
527527
setenv_var MODULES_AVAIL_OUTPUT sym:tag:modulepath:via

testsuite/modules.70-maint/362-spider_output.exp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ testouterr_cmd sh {--json ml spi -o sym foo/1.0} ERR "{\"errors\": \[\n{ \"sever
7575

7676
# invalid value set
7777
set tserr_invalid_output_val "$error_msgs: Invalid element in value list for '--output' option on spider sub-command
78-
Allowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
78+
Allowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
7979
set tserr_invalid_o_val "$error_msgs: Invalid element in value list for '-o' option on spider sub-command
80-
Allowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
80+
Allowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec via (separated by ':')"
8181
testouterr_cmd sh {spider --output=foo foo} ERR $tserr_invalid_output_val
8282
testouterr_cmd sh {spider --output=sym,alias foo} ERR $tserr_invalid_output_val
8383
testouterr_cmd sh {spider --output="sym alias" foo} ERR $tserr_invalid_output_val
@@ -490,7 +490,7 @@ $modpath.spider3:
490490
modc/1
491491
modc/2"
492492
testouterr_cmd sh {spider -t mod} OK $tserr
493-
testouterr_cmd sh {spider -t -o +via mod} ERR "$error_msgs: Invalid element in value list for '-o' option on spider sub-command\n Allowed elements are: modulepath alias dirwsym indesym sym tag key hidden variant variantifspec (separated by ':')"
493+
testouterr_cmd sh {spider -t -o +via mod} ERR "$error_msgs: Invalid element in value list for '-o' option on spider sub-command\n Allowed elements are: modulepath alias provided-alias dirwsym indesym sym tag key hidden variant variantifspec (separated by ':')"
494494

495495
# same module in different modulepath, one of them loaded
496496
setenv_var MODULES_SPIDER_OUTPUT sym:tag:modulepath:via

0 commit comments

Comments
 (0)