From 23ed0e4fa2adbe6f0c4f0ea81a68278e11d1801e Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Wed, 10 Aug 2016 18:11:24 -0700 Subject: [PATCH] Use capital 'PSMODULEPATH' in tests so that it works in unix --- test/powershell/enginecore/ModulePath.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/enginecore/ModulePath.Tests.ps1 b/test/powershell/enginecore/ModulePath.Tests.ps1 index 57987a134..b6b664de5 100644 --- a/test/powershell/enginecore/ModulePath.Tests.ps1 +++ b/test/powershell/enginecore/ModulePath.Tests.ps1 @@ -2,7 +2,7 @@ Describe "Module Path Basic Tests" -tags "CI" { It "validate module path on windows" -Skip:(!$IsWindows) { - $paths = $env:PSModulePath -split [System.IO.Path]::PathSeparator + $paths = $env:PSMODULEPATH -split [System.IO.Path]::PathSeparator $paths.Count | Should Be 3 $expectedUserPath = Join-Path -Path $HOME -ChildPath 'Documents\PowerShell\Modules' @@ -17,7 +17,7 @@ Describe "Module Path Basic Tests" -tags "CI" { It "validate module path on unix" -Skip:($IsWindows) { - $paths = $env:PSModulePath -split [System.IO.Path]::PathSeparator + $paths = $env:PSMODULEPATH -split [System.IO.Path]::PathSeparator $paths.Count | Should Be 3 $expectedUserPath = [System.Management.Automation.Platform]::SelectProductNameForDirectory("USER_MODULES")