Restore-TestEnvironment remains PSModulePath added by Initialize-TestEnvironment #70

Open
guitarrapc opened this Issue Jul 30, 2016 · 0 comments

Projects

None yet

2 participants

@guitarrapc

Description of Issue

Restore-TestEnvironment could not handle Initialize-TestEnvironment added path.

Detail

Initialize-TestEnvironment adding current Test DSC Module's Root Path, which retrieved at here https://github.com/PowerShell/DscResource.Tests/blob/dev/TestHelper.psm1#L347, to the Machine's PSmodulePath at https://github.com/PowerShell/DscResource.Tests/blob/dev/TestHelper.psm1#L376

It's trying to pass $OldModulePath info, https://github.com/PowerShell/DscResource.Tests/blob/dev/TestHelper.psm1#L393 but ModuleRoot is remain afterRestore-TestEnvironment has ran.

Expectation

Should completely remove Test Module Path from PSModulePath.

@kwirkykat kwirkykat added the bug label Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment