We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30a61f9 commit 8e99c7eCopy full SHA for 8e99c7e
1 file changed
Tests/Engine/ModuleDependencyHandler.tests.ps1
@@ -8,13 +8,23 @@ if ($testingLibraryUsage)
8
return
9
}
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
22
# DSC Module saving is not supported in versions less than PSv5
23
if (($PSVersionTable.PSVersion -lt [Version]'5.0'))
24
{
25
26
27
-$directory = Split-Path -Parent $MyInvocation.MyCommand.Path
28
$violationFileName = 'MissingDSCResource.ps1'
29
$violationFilePath = Join-Path $directory $violationFileName
30
0 commit comments