Skip to content

Commit 1c9fe1b

Browse files
committed
ts: test redirect_output config option
1 parent abfef4e commit 1c9fe1b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

testsuite/install.00-init/010-environ.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ catch {unset env(LESS)}
9090
catch {unset env(PAGER)}
9191
catch {unset env(MODULES_PAGER)}
9292

93+
# clean any output redirection configuration
94+
unsetenv_var MODULES_REDIRECT_OUTPUT
95+
9396
# ensure tests are run with a regular default verbosity level
9497
set env(MODULES_VERBOSITY) normal
9598

testsuite/modules.00-init/010-environ.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ catch {unset env(LESS)}
9191
catch {unset env(PAGER)}
9292
catch {unset env(MODULES_PAGER)}
9393

94+
# clean any output redirection configuration
95+
unsetenv_var MODULES_REDIRECT_OUTPUT
96+
9497
# ensure tests are run with a regular default verbosity level
9598
setenv_var MODULES_VERBOSITY normal
9699

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ array set configdfl [list\
7474
pager "$install_pagercmd"\
7575
quarantine_support [expr {$install_quarantinesupport eq {y}}]\
7676
rcfile <undef>\
77+
redirect_output 1\
7778
run_quarantine <undef>\
7879
search_match $install_searchmatch\
7980
set_shell_startup [expr {$install_setshellstartup eq {y}}]\
@@ -117,6 +118,7 @@ array set configvar [list\
117118
pager MODULES_PAGER\
118119
quarantine_support MODULES_QUARANTINE_SUPPORT\
119120
rcfile MODULERCFILE\
121+
redirect_output MODULES_REDIRECT_OUTPUT\
120122
run_quarantine MODULES_RUN_QUARANTINE\
121123
search_match MODULES_SEARCH_MATCH\
122124
set_shell_startup MODULES_SET_SHELL_STARTUP\
@@ -150,6 +152,7 @@ array set configvalid [list\
150152
ml {0 1}\
151153
nearly_forbidden_days {0 365}\
152154
quarantine_support {0 1}\
155+
redirect_output {0 1}\
153156
search_match {starts_with contains}\
154157
set_shell_startup {0 1}\
155158
shells_with_ksh_fpath {sh bash csh tcsh fish}\

0 commit comments

Comments
 (0)