Harden some problematic release tests (#20155)

This commit is contained in:
James Truher [MSFT] authored and GitHub committed 2023-08-28 10:55:25 -07:00
1 parent 344ac7b08a
commit a469783e76
5 files changed
+89 -49

No files matched your search

@@ -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 {