Harden some problematic release tests (#20155)

This commit is contained in:
James Truher [MSFT]
2023-08-28 10:55:25 -07:00
committed by GitHub
parent 344ac7b08a
commit a469783e76
5 changed files with 89 additions and 49 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 = & $powershell -noprofile -command 'powershell.exe -noprofile -command $env:PSModulePath'
$out = & $powershell -noprofile -command 'powershell.exe -noprofile -command `$env:PSModulePath'
$out | Should -Not -BeLike 'myUserPath;*'
}
finally {