Skip to content

Commit

Permalink
Merge pull request #2960 from ActiveState/mitchell/dx-556
Browse files Browse the repository at this point in the history
Verify existing environment variables are inherited by activated states.
  • Loading branch information
mitchell-as authored Dec 19, 2023
2 parents 32a62e2 + 3c1b028 commit b018e53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/activate_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ func (suite *ActivateIntegrationTestSuite) activatePython(version string, extraE
cp.ExpectInput(termtest.OptExpectTimeout(40 * time.Second))
pythonShim := pythonExe + osutils.ExeExtension

// test that existing environment variables are inherited by the activated shell
if runtime.GOOS == "windows" {
cp.SendLine(fmt.Sprintf("echo %%%s%%", constants.DisableRuntime))
} else {
cp.SendLine("echo $" + constants.DisableRuntime)
}
cp.Expect("false")

// test that other executables that use python work as well
pipExe := "pip" + version
cp.SendLine(fmt.Sprintf("%s --version", pipExe))
Expand Down

0 comments on commit b018e53

Please sign in to comment.