ts: ensure implicit requirement is enabled for tests

This commit is contained in:
Xavier Delaruelle
2020-10-19 11:00:07 +02:00
parent 36aa8b003a
commit 414b45b033
3 changed files with 8 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ if {[info exists install_quarlist]} {
# clean any automated handling mode configuration
catch {unset env(MODULES_AUTO_HANDLING)}
# ensure tests are run with implicit requirement enabled
set env(MODULES_IMPLICIT_REQUIREMENT) 1
# clean any in depth mode configuration
catch {unset env(MODULES_AVAIL_INDEPTH)}

View File

@@ -49,6 +49,9 @@ foreach var [array names env] {
# clean any automated handling mode configuration
catch {unset env(MODULES_AUTO_HANDLING)}
# ensure tests are run with implicit requirement enabled
setenv_var MODULES_IMPLICIT_REQUIREMENT 1
# clean any in depth mode configuration
catch {unset env(MODULES_AVAIL_INDEPTH)}

View File

@@ -24,6 +24,7 @@
unsetenv_var MODULES_VERBOSITY
unsetenv_var MODULES_EXTENDED_DEFAULT
unsetenv_var MODULES_COLOR
unsetenv_var MODULES_IMPLICIT_REQUIREMENT
unsetenv_var MODULERCFILE
if {[info exists env(MODULES_ICASE)]} {
set saved_icase $env(MODULES_ICASE)
@@ -377,6 +378,7 @@ unsetenv_var MODULES_RUNENV_FOO
setenv_var MODULES_VERBOSITY normal
setenv_var MODULES_EXTENDED_DEFAULT 0
setenv_var MODULES_COLOR never
setenv_var MODULES_IMPLICIT_REQUIREMENT 1
setenv_var MODULERCFILE $env(TESTSUITEDIR)/etc/empty
if {[info exists saved_icase]} {
setenv_var MODULES_ICASE $saved_icase