Get-Help test reported as skipped if not applicable to the platform (#3009)

Addressed #2887
This commit is contained in:
Ilya
2017-01-24 18:04:44 -08:00
committed by Mike Richmond
parent f2b9f7d5ab
commit abc3614919
@@ -36,16 +36,15 @@
foreach ($cmdlet in $cmdletList)
{
# If the cmdlet is not preset in CoreCLR, skip it.
if (Get-Command $cmdlet.TopicTitle -ea SilentlyContinue)
{
# TopicTitle - is the cmdlet name in the csv file
# HelpURI - is the expected help URI in the csv file
$skipTest = (Get-Command $cmdlet.TopicTitle -ea SilentlyContinue) -eq $null
It "Validate 'get-help $($cmdlet.TopicTitle) -Online'" {
$actualURI = Get-Help $cmdlet.TopicTitle -Online
$actualURI = $actualURI.Replace("Help URI: ","")
$actualURI | Should Be $cmdlet.HelpURI
}
# TopicTitle - is the cmdlet name in the csv file
# HelpURI - is the expected help URI in the csv file
It "Validate 'get-help $($cmdlet.TopicTitle) -Online'" -Skip:$skipTest {
$actualURI = Get-Help $cmdlet.TopicTitle -Online
$actualURI = $actualURI.Replace("Help URI: ","")
$actualURI | Should Be $cmdlet.HelpURI
}
}
}