Remove appveyor environment checks (#8669)

This commit is contained in:
Reece Dunham 2019-01-17 15:33:35 -05:00 committed by Travis Plunk
parent 41e63f6546
commit f29a04c1bd
2 changed files with 4 additions and 12 deletions

View file

@ -16,12 +16,6 @@ Describe "Enter-PSHostProcess tests" -Tag Feature {
$powershell = [System.Diagnostics.Process]::Start($si)
}
if ($env:AppVeyor) {
$IsAppveyor = $true
}
else {
$IsAppveyor = $false
}
}
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" -Skip:$IsAppVeyor {
It "Can enter and exit another PSHost" {
"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 -or $IsAppVeyor) {
It "Can enter and exit another Windows PowerShell PSHost" -Skip:(!$IsWindows) {
"enter-pshostprocess -id $($powershell.Id)`n`$pid`nexit-pshostprocess" | pwsh -c - | Should -Be $powershell.Id
}

View file

@ -6,13 +6,13 @@ Describe "Set-PSDebug" -Tags "CI" {
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 1 } | 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
}
}