Skip to content

Commit

Permalink
Fix base_test with zsh
Browse files Browse the repository at this point in the history
I'm not sure why the base_test fails in GitHub Actions because I cannot
reproduce the problem locally, but somehow the pdksh-only workaround to
run "set -o monitor" is not working.  Given that this is just a hack
for tests, avoid doing this for zsh.
  • Loading branch information
jmmv committed Oct 7, 2023
1 parent 5fc163f commit d0d8890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ EOF
# actual bug in the shtk_abort code. For now, assume the former and workaround
# the issue in the tests only.
fixup_abort_subshell_tests_for_pdksh() {
set -o monitor 2>/dev/null
if [ -z "${ZSH_VERSION}" ]; then
set -o monitor 2>/dev/null
fi
}


Expand Down

0 comments on commit d0d8890

Please sign in to comment.