Skip to content

Commit

Permalink
Use zsh instead of bash in macOS integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Aug 18, 2023
1 parent b065046 commit 43f9213
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/shell_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"runtime"
"testing"

"github.com/ActiveState/cli/internal/condition"
"github.com/ActiveState/cli/internal/config"
"github.com/ActiveState/cli/internal/constants"
"github.com/ActiveState/cli/internal/fileutils"
Expand Down Expand Up @@ -292,6 +293,9 @@ func (suite *ShellIntegrationTestSuite) TestNestedShellNotification() {
os.Setenv(constants.HomeEnvVarName, ts.Dirs.HomeDir)
defer func() { os.Unsetenv(constants.HomeEnvVarName) }()
ss := subshell.New(cfg)
if runtime.GOOS == "darwin" && condition.OnCI() {
ss = &zsh.SubShell{} // GitHub actions runs on bash, so override with zsh
}
err = subshell.ConfigureAvailableShells(ss, cfg, nil, sscommon.InstallID, true) // mimic installer
suite.Require().NoError(err)

Expand Down

0 comments on commit 43f9213

Please sign in to comment.