Skip to content

Commit 8e99c7e

Browse files
author
Kapil Borle
committed
Skip ModuleHandler tests for Linux for now
1 parent 30a61f9 commit 8e99c7e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Tests/Engine/ModuleDependencyHandler.tests.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@ if ($testingLibraryUsage)
88
return
99
}
1010

11+
$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
12+
$testRootDirectory = Split-Path -Parent $directory
13+
Import-Module (Join-Path $testRootDirectory 'PSScriptAnalyzerTestHelper.psm1')
14+
15+
# needs fixing
16+
# right now we do not support module dependency handing on Linux
17+
if ((Test-PSEditionCoreCLRLinux))
18+
{
19+
return
20+
}
21+
1122
# DSC Module saving is not supported in versions less than PSv5
1223
if (($PSVersionTable.PSVersion -lt [Version]'5.0'))
1324
{
1425
return
1526
}
1627

17-
$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
1828
$violationFileName = 'MissingDSCResource.ps1'
1929
$violationFilePath = Join-Path $directory $violationFileName
2030

0 commit comments

Comments
 (0)