@@ -130,7 +130,6 @@ var _ = Describe("execCmdRunner", func() {
130130
131131 It ("run complex command with env" , func () {
132132 cmd := osSpecificCommand ("env" )
133- cmd .UseIsolatedEnv = false
134133 stdout , stderr , status , err := runner .RunComplexCommand (cmd )
135134 Expect (err ).ToNot (HaveOccurred ())
136135
@@ -141,23 +140,6 @@ var _ = Describe("execCmdRunner", func() {
141140 Expect (status ).To (Equal (0 ))
142141 })
143142
144- It ("runs complex command with specific env" , func () {
145- cmd := osSpecificCommand ("env" )
146- cmd .UseIsolatedEnv = true
147- if runtime .GOOS == "windows" {
148- Expect (func () { runner .RunComplexCommand (cmd ) }).To (Panic ()) //nolint:errcheck
149- } else {
150- stdout , stderr , status , err := runner .RunComplexCommand (cmd )
151- Expect (err ).ToNot (HaveOccurred ())
152-
153- envVars := parseEnvFields (stdout , true )
154- Expect (envVars ).To (HaveKeyWithValue ("FOO" , "BAR" ))
155- Expect (envVars ).ToNot (HaveKey ("PATH" ))
156- Expect (stderr ).To (BeEmpty ())
157- Expect (status ).To (Equal (0 ))
158- }
159- })
160-
161143 It ("uses the env vars specified in the Command" , func () {
162144 GinkgoT ().Setenv ("_FOO" , "BAR" )
163145
@@ -351,7 +333,6 @@ var _ = Describe("execCmdRunner", func() {
351333
352334 It ("allows setting custom env variable in addition to inheriting process env variables" , func () {
353335 cmd := osSpecificCommand ("env" )
354- cmd .UseIsolatedEnv = false
355336
356337 process , err := runner .RunComplexCommandAsync (cmd )
357338 Expect (err ).ToNot (HaveOccurred ())
0 commit comments