Skip to content

Commit c021168

Browse files
committed
ts: adapt tests for variantifspec val in avail_*output cfgs in 70/{220,360}
1 parent 62ad929 commit c021168

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ array set configvalid [list\
159159
advanced_version_spec {0 1}\
160160
auto_handling {0 1}\
161161
avail_indepth {0 1}\
162-
avail_output {modulepath alias dirwsym sym tag key variant}\
163-
avail_terse_output {modulepath alias dirwsym sym tag key variant}\
162+
avail_output {modulepath alias dirwsym sym tag key variant variantifspec}\
163+
avail_terse_output {modulepath alias dirwsym sym tag key variant variantifspec}\
164164
cache_buffer_bytes {4096 1000000}\
165165
cache_expiry_secs {0 31536000}\
166166
collection_pin_version {0 1}\

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

Lines changed: 6 additions & 6 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 sym tag key variant (separated by ':')"
92+
Allowed elements are: modulepath alias dirwsym sym tag key variant variantifspec (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 sym tag key variant (separated by ':')"
94+
Allowed elements are: modulepath alias dirwsym sym tag key variant variantifspec (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 sym tag key variant (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 dirwsym sym tag key variant variantifspec (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 sym tag key variant (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 dirwsym sym tag key variant variantifspec (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 sym tag key variant (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 dirwsym sym tag key variant variantifspec (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 sym tag key variant (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 dirwsym sym tag key variant variantifspec (separated by ':')" {module avail -o sym,alias foo/1.0} $mp/output/1.0 25]]
171171
}
172172

173173
unsetenv_var TESTSUITE_OUTPUT_INMODFILE

0 commit comments

Comments
 (0)