Mark Save-Help PackageManagement tests as pending (#6545)

This commit is contained in:
Aditya Patwardhan
2018-04-02 14:07:02 -07:00
committed by GitHub
parent 9e3ffb10e5
commit 260c16ff4f
@@ -229,9 +229,16 @@ function RunSaveHelpTests
try
{
$saveHelpFolder = Join-Path $TestDrive (Get-Random).ToString()
New-Item $saveHelpFolder -Force -ItemType Directory
New-Item $saveHelpFolder -Force -ItemType Directory > $null
It "Validate Save-Help for the '$moduleName' module" {
## Save help has intermittent connectivity issues for downloading PackageManagement help content.
## Hence the test has been marked as Pending.
if($moduleName -eq 'PackageManagement')
{
$pending = $true
}
It "Validate Save-Help for the '$moduleName' module" -Pending:$pending {
if ((Get-UICulture).Name -ne "en-Us")
{
@@ -245,6 +252,12 @@ function RunSaveHelpTests
ValidateSaveHelp -moduleName $moduleName -path $saveHelpFolder
}
## Reset pending state.
if($pending)
{
$pending = $false
}
if ($tag -eq "CI")
{
break