Enable get-help pattern tests on Unix (#18855)

This commit is contained in:
xtqqczze
2023-01-10 08:10:03 +05:00
committed by GitHub
parent 31af38c22a
commit 8e14d2d7aa
@@ -312,10 +312,6 @@ Describe "Get-Help should find help info within help files" -Tags @('CI') {
Describe "Get-Help should find pattern help files" -Tags "CI" {
# There is a bug specific to Travis CI that suspends the test if "get-help" is used to search pattern string. This doesn't repro locally.
# This occurs even if Unix system just returns "Directory.GetFiles(path, pattern);" as the windows' code does.
# Since there's currently no way to get the vm from Travis CI and the test PASSES locally on both Ubuntu and MacOS, excluding pattern test under Unix system.
BeforeAll {
$helpFile1 = "about_testCase1.help.txt"
$helpFile2 = "about_testCase.2.help.txt"
@@ -349,7 +345,7 @@ Describe "Get-Help should find pattern help files" -Tags "CI" {
@{command = {Get-Help about_testCas?.2*}; testname = "test ?, * pattern with dot"; result = "about_test2"}
)
It "Get-Help should find pattern help files - <testname>" -TestCases $testcases -Pending: (-not $IsWindows) {
It "Get-Help should find pattern help files - <testname>" -TestCases $testcases {
param (
$command,
$result