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 71ad314
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 @@ -288,6 +289,9 @@ func (suite *ShellIntegrationTestSuite) TestNestedShellNotification() {

cfg, err := config.New()
suite.Require().NoError(err)
if runtime.GOOS == "darwin" && condition.OnCI() {
cfg.Set(subshell.ConfigKeyShell, "zsh") // GitHub actions runs on bash, so override with zsh
}

os.Setenv(constants.HomeEnvVarName, ts.Dirs.HomeDir)
defer func() { os.Unsetenv(constants.HomeEnvVarName) }()
Expand Down

0 comments on commit 71ad314

Please sign in to comment.