mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Harden some problematic release tests (#20155)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user