diff --git a/test/integration/activate_int_test.go b/test/integration/activate_int_test.go index 2f3010f1ea..c21bc05cde 100644 --- a/test/integration/activate_int_test.go +++ b/test/integration/activate_int_test.go @@ -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))