Skip to content

Commit 488df28

Browse files
committed
ts: fix sh-to-mod fish test when init fish script installed
Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent 3dd4b44 commit 488df28

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

testsuite/modules.70-maint/310-sh-to-mod.exp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121
##############################################################################
2222

23-
proc testouterr_shtomod {sh cmdline out err {script {}}} {
23+
proc testouterr_shtomod {sh cmdline out err {script {}} {xfail {}}} {
2424
if {$sh eq {ALL}} {
2525
set shlist $::shtomod_avail_shells
2626
} else {
@@ -35,7 +35,7 @@ proc testouterr_shtomod {sh cmdline out err {script {}}} {
3535
set shscript $::testscript($sh)
3636
}
3737
set tserr [string map [list {<SHELL>} $sh {<SCRIPTSH>} $shscript] $err]
38-
testouterr_cmd sh "sh-to-mod $sh $shscript$cmdline" $out $tserr
38+
testouterr_cmd sh "sh-to-mod $sh $shscript$cmdline" $out $tserr $xfail
3939
}
4040
}
4141

@@ -809,12 +809,14 @@ if {$is_modules_defined} {
809809
set extratserr {}
810810
}
811811
if {$is_modules_defined_fish && $os_name ne {cygwin}} {
812+
set xfail_fish {xfail}
812813
set extratserr_fish "\nunset-function\tml\nunset-function\tmodule"
813814
if {$is_mogui_defined} {
814815
append extratserr_fish "\nunset-function\tmogui"
815816
}
816817
append extratserr_fish "\nunsetenv\tMODULESHOME"
817818
} else {
819+
set xfail_fish {}
818820
set extratserr_fish {}
819821
}
820822

@@ -836,7 +838,7 @@ foreach sh $shtomod_avail_shells {
836838
} elseif {$sh ne {fish}} {
837839
testouterr_shtomod $sh {} OK $tserr
838840
} elseif {$sh eq {fish} && $fish_version_ge31} {
839-
testouterr_shtomod $sh {} OK $tserr$extratserr_fish
841+
testouterr_shtomod $sh {} OK $tserr$extratserr_fish {} $xfail_fish
840842
}
841843
}
842844

0 commit comments

Comments
 (0)