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)
8
8
return
9
9
}
10
10
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
+
11
22
# DSC Module saving is not supported in versions less than PSv5
12
23
if (($PSVersionTable.PSVersion -lt [Version ]' 5.0' ))
13
24
{
14
25
return
15
26
}
16
27
17
- $directory = Split-Path - Parent $MyInvocation.MyCommand.Path
18
28
$violationFileName = ' MissingDSCResource.ps1'
19
29
$violationFilePath = Join-Path $directory $violationFileName
20
30
You can’t perform that action at this time.
0 commit comments