corrected use of PSModulePath casing to be consistent with Windows PowerShell (#3255)

* corrected use of PSModulePath casing to be consistent with Windows PowerShell
addresses #3227

* addressing review feedback
make "PSModulePath" into const
fixed some test workarounds due to failures for external reasons that wasn't meant to be checked in

* addressing review feedback
make "PSModulePath" into const
fixed some test workarounds due to failures for external reasons that wasn't meant to be checked in
This commit is contained in:
Steve Lee
2017-03-15 12:04:28 -07:00
committed by Travis Plunk
parent e5da3516d9
commit 76de340e79
18 changed files with 81 additions and 76 deletions
@@ -507,7 +507,7 @@ Describe "Unit tests for line breakpoints on modules" -Tags "CI" {
# <Summary>Unit tests for line breakpoints on modules...</Summary>
# </Test>
#
$oldModulePath = $env:PSMODULEPATH
$oldModulePath = $env:PSModulePath
try
{
#
@@ -560,7 +560,7 @@ Describe "Unit tests for line breakpoints on modules" -Tags "CI" {
#
# Load the module
#
$ENV:PSMODULEPATH = $moduleRoot
$ENV:PSModulePath = $moduleRoot
import-module $moduleName
@@ -594,7 +594,7 @@ Describe "Unit tests for line breakpoints on modules" -Tags "CI" {
}
finally
{
$env:PSMODULEPATH = $oldModulePath
$env:PSModulePath = $oldModulePath
if ($breakpoint1 -ne $null) { Remove-PSBreakpoint $breakpoint1 }
if ($breakpoint2 -ne $null) { Remove-PSBreakpoint $breakpoint2 }
if ($breakpoint3 -ne $null) { Remove-PSBreakpoint $breakpoint3 }