diff --git a/test/powershell/Language/Scripting/ActionPreference.Tests.ps1 b/test/powershell/Language/Scripting/ActionPreference.Tests.ps1 index 3b8fb8e9acb..d6add6bf3be 100644 --- a/test/powershell/Language/Scripting/ActionPreference.Tests.ps1 +++ b/test/powershell/Language/Scripting/ActionPreference.Tests.ps1 @@ -420,7 +420,7 @@ Describe 'ActionPreference.Break tests' -tag 'CI' { } It 'ActionPreference.Break should break in a running job' { - Wait-UntilTrue -sb { $job.State -eq 'AtBreakpoint' } -TimeoutInMilliseconds (10 * 1000) -IntervalInMilliseconds 100 | Should -BeTrue + Wait-UntilTrue -sb { $job.State -eq 'AtBreakpoint' } -TimeoutInMilliseconds (60 * 1000) -IntervalInMilliseconds 100 | Should -BeTrue } } } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 index e29f041a4f8..4a3519df92b 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Core/Enter-PSHostProcess.Tests.ps1 @@ -9,8 +9,9 @@ function Wait-JobPid { ) # This is to prevent hanging in the test. + # Some test environments (such as raspberry_pi) require more time for background job to run. $startTime = [DateTime]::Now - $TimeoutInMilliseconds = 10000 + $TimeoutInMilliseconds = 60000 # This will receive the pid of the Job process and nothing more since that was the only thing written to the pipeline. do { diff --git a/test/powershell/SDK/Breakpoint.Tests.ps1 b/test/powershell/SDK/Breakpoint.Tests.ps1 index 7c3b8868664..7b080e9ab6b 100644 --- a/test/powershell/SDK/Breakpoint.Tests.ps1 +++ b/test/powershell/SDK/Breakpoint.Tests.ps1 @@ -21,7 +21,7 @@ Describe 'Breakpoint SDK Unit Tests' -Tags 'CI' { # Wait for the child job that gets created to hit the breakpoint. This is the # only safe way to know that the job has actually entered a running state and # that the remote runspace is listening for requests. - Wait-UntilTrue { $job.ChildJobs.Count -gt 0 -and $job.ChildJobs[0].State -eq 'AtBreakpoint' } -TimeoutInMilliseconds 10000 -IntervalInMilliseconds 250 + Wait-UntilTrue { $job.ChildJobs.Count -gt 0 -and $job.ChildJobs[0].State -eq 'AtBreakpoint' } -TimeoutInMilliseconds 60000 -IntervalInMilliseconds 250 # Get the runspace for the running job $jobRunspace = $job.ChildJobs[0].Runspace diff --git a/test/powershell/engine/Remoting/PSSession.Tests.ps1 b/test/powershell/engine/Remoting/PSSession.Tests.ps1 index 892b843435d..4207c914fee 100644 --- a/test/powershell/engine/Remoting/PSSession.Tests.ps1 +++ b/test/powershell/engine/Remoting/PSSession.Tests.ps1 @@ -73,8 +73,9 @@ Describe "SkipCACheck and SkipCNCheck PSSession options are required for New-PSS It "" -TestCases $testCases { param ($scriptBlock, $expectedErrorCode) - if ( (Get-PlatformInfo) -eq "alpine" ) { - Set-ItResult -Pending -Because "MI library not available for Alpine" + $platformInfo = Get-PlatformInfo + if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian")) { + Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi" return } diff --git a/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 b/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 index 923e5f5a4cb..635f430e5c2 100644 --- a/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 +++ b/test/powershell/engine/Remoting/RemoteSession.Basic.Tests.ps1 @@ -5,8 +5,9 @@ Import-Module HelpersCommon Describe "New-PSSession basic test" -Tag @("CI") { It "New-PSSession should not crash powershell" { - if ( (Get-PlatformInfo) -eq "alpine" ) { - Set-ItResult -Pending -Because "MI library not available for Alpine" + $platformInfo = Get-PlatformInfo + if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian")) { + Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi" return } @@ -17,8 +18,9 @@ Describe "New-PSSession basic test" -Tag @("CI") { Describe "Basic Auth over HTTP not allowed on Unix" -Tag @("CI") { It "New-PSSession should throw when specifying Basic Auth over HTTP on Unix" -skip:($IsWindows) { - if ( (Get-PlatformInfo) -eq "alpine" ) { - Set-ItResult -Pending -Because "MI library not available for Alpine" + $platformInfo = Get-PlatformInfo + if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian")) { + Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi" return } @@ -33,8 +35,9 @@ Describe "Basic Auth over HTTP not allowed on Unix" -Tag @("CI") { } It "New-PSSession should NOT throw a ConnectFailed exception when specifying Basic Auth over HTTPS on Unix" -skip:($IsWindows) { - if ( (Get-PlatformInfo) -eq "alpine" ) { - Set-ItResult -Pending -Because "MI library not available for Alpine" + $platformInfo = Get-PlatformInfo + if (($platformInfo -eq "alpine") -or ($platformInfo -eq "raspbian") ) { + Set-ItResult -Skipped -Because "MI library not available for Alpine or Raspberry Pi" return }