Remove appveyor environment checks (#8669)
This commit is contained in:
parent
41e63f6546
commit
f29a04c1bd
2 changed files with 4 additions and 12 deletions
|
@ -16,12 +16,6 @@ Describe "Enter-PSHostProcess tests" -Tag Feature {
|
||||||
$powershell = [System.Diagnostics.Process]::Start($si)
|
$powershell = [System.Diagnostics.Process]::Start($si)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($env:AppVeyor) {
|
|
||||||
$IsAppveyor = $true
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$IsAppveyor = $false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AfterAll {
|
AfterAll {
|
||||||
|
@ -32,13 +26,11 @@ Describe "Enter-PSHostProcess tests" -Tag Feature {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Skip on Appveyor due to PSReadline issue.
|
It "Can enter and exit another PSHost" {
|
||||||
It "Can enter and exit another PSHost" -Skip:$IsAppVeyor {
|
|
||||||
"enter-pshostprocess -id $($pwsh.Id)`n`$pid`nexit-pshostprocess" | pwsh -c - | Should -Be $pwsh.Id
|
"enter-pshostprocess -id $($pwsh.Id)`n`$pid`nexit-pshostprocess" | pwsh -c - | Should -Be $pwsh.Id
|
||||||
}
|
}
|
||||||
|
|
||||||
# Skip on Appveyor due to PSReadline issue.
|
It "Can enter and exit another Windows PowerShell PSHost" -Skip:(!$IsWindows) {
|
||||||
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
|
"enter-pshostprocess -id $($powershell.Id)`n`$pid`nexit-pshostprocess" | pwsh -c - | Should -Be $powershell.Id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,13 @@ Describe "Set-PSDebug" -Tags "CI" {
|
||||||
Set-PSDebug -Off
|
Set-PSDebug -Off
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should be able to go through the tracing options" -Skip:($env:APPVEYOR -eq "TRUE") {
|
It "Should be able to go through the tracing options" {
|
||||||
{ Set-PSDebug -Trace 0 } | Should -Not -Throw
|
{ Set-PSDebug -Trace 0 } | Should -Not -Throw
|
||||||
{ Set-PSDebug -Trace 1 } | Should -Not -Throw
|
{ Set-PSDebug -Trace 1 } | Should -Not -Throw
|
||||||
{ Set-PSDebug -Trace 2 } | Should -Not -Throw
|
{ Set-PSDebug -Trace 2 } | Should -Not -Throw
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should be able to set strict" -Skip:($env:APPVEYOR -eq "TRUE") {
|
It "Should be able to set strict" {
|
||||||
{ Set-PSDebug -Strict } | Should -Not -Throw
|
{ Set-PSDebug -Strict } | Should -Not -Throw
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue