mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Skip Enter-PSHostProcess tests on Appveyor due to PSReadline issue (#8317)
This commit is contained in:
@@ -15,6 +15,13 @@ Describe "Enter-PSHostProcess tests" -Tag Feature {
|
||||
$si.FileName = "powershell"
|
||||
$powershell = [System.Diagnostics.Process]::Start($si)
|
||||
}
|
||||
|
||||
if ($env:AppVeyor) {
|
||||
$IsAppveyor = $true
|
||||
}
|
||||
else {
|
||||
$IsAppveyor = $false
|
||||
}
|
||||
}
|
||||
|
||||
AfterAll {
|
||||
@@ -25,11 +32,13 @@ Describe "Enter-PSHostProcess tests" -Tag Feature {
|
||||
}
|
||||
}
|
||||
|
||||
It "Can enter and exit another PSHost" {
|
||||
# Skip on Appveyor due to PSReadline issue.
|
||||
It "Can enter and exit another PSHost" -Skip:$IsAppVeyor {
|
||||
"enter-pshostprocess -id $($pwsh.Id)`n`$pid`nexit-pshostprocess" | pwsh -c - | Should -Be $pwsh.Id
|
||||
}
|
||||
|
||||
It "Can enter and exit another Windows PowerShell PSHost" -Skip:(!$IsWindows) {
|
||||
# Skip on Appveyor due to PSReadline issue.
|
||||
It "Can enter and exit another Windows PowerShell PSHost" -Skip:(!$IsWindows -or $IsAppVeyor) {
|
||||
"enter-pshostprocess -id $($powershell.Id)`n`$pid`nexit-pshostprocess" | pwsh -c - | Should -Be $powershell.Id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user