Skip to content

Commit 470d922

Browse files
committed
ts: skip basheu tests on bash 5.2
bash -eu test of install testsuite are skipped on new version of bash (5.2) as internal messages currently appear when using module function with -eu options on this version. A bug as been submitted to the bash developers: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00073.html
1 parent 8c6fcb9 commit 470d922

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

testsuite/install.00-init/005-init_ts.exp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ if {$sh_kind eq "dash" || ($tcl_platform(os) ne "Linux"\
6565
}
6666
send_user "\tsh_strict is '$sh_strict'\n"
6767

68+
# grab bash shell version
69+
set bashbin [find_bin bash]
70+
if {$bashbin ne {}} {
71+
set bash_version [exec $bashbin -c {echo $BASH_VERSION}]
72+
set bash_version_is52 [string match 5.2.* $bash_version]
73+
send_user "\tbash_version_is52 is '$bash_version_is52'\n"
74+
}
75+
6876
# check SIP is enabled or not on OS X
6977
if {$tcl_platform(os) eq "Darwin"} {
7078
catch {
@@ -101,6 +109,10 @@ array set shell_path {}
101109
array set shell_opts {}
102110
array set shell_test {}
103111
foreach shell [list sh bash basheu ksh zsh csh tcsh fish tcl perl python ruby cmake r] {
112+
if {$shell eq {basheu} && $bash_version_is52} {
113+
send_user "\t'basheu' shell tests ignored on Bash 5.2\n"
114+
continue
115+
}
104116
switch -- $shell {
105117
tcl {
106118
set shellbin $install_tclsh

0 commit comments

Comments
 (0)