Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand All @@ -245,6 +252,12 @@ function RunSaveHelpTests
ValidateSaveHelp -moduleName $moduleName -path $saveHelpFolder
}

## Reset pending state.
if($pending)
{
$pending = $false
}

if ($tag -eq "CI")
{
break
Expand Down