From 2708315e47fbd6925487bc40b0204e3189556793 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Tue, 27 Dec 2022 16:07:31 +0000 Subject: [PATCH] Enable get-help pattern tests on Unix --- test/powershell/engine/Help/HelpSystem.Tests.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/powershell/engine/Help/HelpSystem.Tests.ps1 b/test/powershell/engine/Help/HelpSystem.Tests.ps1 index 05d3d086a16..06e4e4ae22b 100644 --- a/test/powershell/engine/Help/HelpSystem.Tests.ps1 +++ b/test/powershell/engine/Help/HelpSystem.Tests.ps1 @@ -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 - " -TestCases $testcases -Pending: (-not $IsWindows) { + It "Get-Help should find pattern help files - " -TestCases $testcases { param ( $command, $result