File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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
1223if (($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
You can’t perform that action at this time.
0 commit comments