[release/v7.4.0-preview.6] Harden some problematic release tests (#20155) (#20254)

This commit is contained in:
Dongbo Wang authored and GitHub committed 2023-09-11 16:45:46 -07:00
1 parent 80f4734368
commit 08b6f61798
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 {