Test changes needed for running in a container (#7869)

This commit is contained in:
James Truher [MSFT]
2018-09-28 13:49:31 -07:00
committed by Aditya Patwardhan
parent cc44781b5b
commit 98cf44cdec
4 changed files with 40 additions and 27 deletions
@@ -48,7 +48,8 @@ Describe 'Online help tests for PowerShell Core Cmdlets' -Tags "CI" {
Describe 'Get-Help -Online opens the default web browser and navigates to the cmdlet help content' -Tags "Feature" {
$skipTest = [System.Management.Automation.Platform]::IsIoT -or
[System.Management.Automation.Platform]::IsNanoServer
[System.Management.Automation.Platform]::IsNanoServer -or
$env:__InContainer -eq 1
# this code is a workaround for issue: https://github.com/PowerShell/PowerShell/issues/3079
if((-not ($skipTest)) -and $IsWindows)