Skip to content

Commit

Permalink
Verify existing environment variables are inherited by activated states.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Dec 19, 2023
1 parent 3c19ee1 commit 2dffa82
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 @@ -263,6 +263,14 @@ func (suite *ActivateIntegrationTestSuite) activatePython(version string, extraE
pipExe := "pip" + version
cp.SendLine(fmt.Sprintf("%s --version", pipExe))

// 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(constants.DisableRuntime + "=false")

// Exit activated state
cp.SendLine("exit")
cp.ExpectExitCode(0)
Expand Down

0 comments on commit 2dffa82

Please sign in to comment.