Skip to content

Commit 1261df2

Browse files
committed
fix tests on Linux
1 parent 908cd3a commit 1261df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Engine/ModuleDependencyHandler.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Describe "Resolve DSC Resource Dependency" {
4141

4242
Context "Module handler class" {
4343
BeforeAll {
44-
if ( $skipTest ) { return }
44+
if ($PSversionTable.PSVersion -lt [Version]'5.0.0') { return }
4545
$moduleHandlerType = [Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.ModuleDependencyHandler]
4646
$oldEnvVars = Get-Item Env:\* | Sort-Object -Property Key
4747
$oldPSModulePath = $env:PSModulePath

0 commit comments

Comments
 (0)