File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,20 @@ Describe 'Tests for osinfo examples' {
18
18
$LASTEXITCODE | Should - Be 0
19
19
$out.results [0 ].result.inDesiredState | Should - Be $IsMacOS
20
20
}
21
+
22
+ It ' Verify dsc home directory is added to PATH to find included resources' {
23
+ $oldPath = $env: PATH
24
+ try {
25
+ $exe_path = Resolve-Path " $PSScriptRoot /../../bin/debug"
26
+ # Remove unwanted elements
27
+ $new_path = ($oldPath.Split ([System.IO.Path ]::PathSeparator) | Where-Object { $_ -ne $exe_path }) -join [System.IO.Path ]::PathSeparator
28
+ $env: PATH = $new_path
29
+
30
+ $null = & " $PSScriptRoot /../../bin/debug/dsc" config test - p " $PSScriptRoot /../examples/osinfo_parameters.dsc.yaml"
31
+ $LASTEXITCODE | Should - Be 0
32
+ }
33
+ finally {
34
+ $env: PATH = $oldPath
35
+ }
36
+ }
21
37
}
You can’t perform that action at this time.
0 commit comments