mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user