Correct pwsh run (#11486)

This commit is contained in:
Ilya
2020-01-05 12:17:41 +05:00
committed by GitHub
parent 2c0d68c1c2
commit b221c2afa2
22 changed files with 61 additions and 56 deletions
@@ -180,7 +180,7 @@ Describe "SxS Module Path Basic Tests" -tags "CI" {
try {
$userConfig = '{ "PSModulePath": "myUserPath" }'
Set-Content -Path $userConfigPath -Value $userConfig -Force
$out = pwsh -noprofile -command 'powershell.exe -noprofile -command $env:PSModulePath'
$out = & $powershell -noprofile -command 'powershell.exe -noprofile -command $env:PSModulePath'
$out | Should -Not -BeLike 'myUserPath;*'
}
finally {