mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
ts: improve coverage of getModulefileFromLoadingModule proc
This commit is contained in:
@@ -666,5 +666,10 @@ if {[info exists env(TESTSUITE_ENABLE_SITECONFIG_GETLOADEDPREREQPATH)]} {
|
||||
report [string length [getLoadedPrereqPath foo qux]]
|
||||
}
|
||||
|
||||
# specific tests to improve getModulefileFromLoadingModule coverage
|
||||
if {[info exists env(TESTSUITE_ENABLE_SITECONFIG_GETMODULEFILEFROMLOADINGMODULE)]} {
|
||||
report [string length [getModulefileFromLoadingModule foo]]
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -734,6 +734,13 @@ lappend ans $vers_reportre
|
||||
testouterr_cmd_re sh -V OK [join $ans \n]
|
||||
unsetenv_var TESTSUITE_ENABLE_SITECONFIG_GETLOADEDPREREQPATH
|
||||
|
||||
setenv_var TESTSUITE_ENABLE_SITECONFIG_GETMODULEFILEFROMLOADINGMODULE 1
|
||||
set ans [list]
|
||||
lappend ans 0
|
||||
lappend ans $vers_reportre
|
||||
testouterr_cmd_re sh -V OK [join $ans \n]
|
||||
unsetenv_var TESTSUITE_ENABLE_SITECONFIG_GETMODULEFILEFROMLOADINGMODULE
|
||||
|
||||
|
||||
} elseif {$verbose} {
|
||||
send_user "\tSkip tests relying on an excepted siteconfig file installed\n"
|
||||
|
||||
Reference in New Issue
Block a user