File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,18 @@ Describe 'PowerShell adapter resource tests' {
11
11
$env: PSModulePath += [System.IO.Path ]::PathSeparator + $PSScriptRoot
12
12
13
13
$winpsConfigPath = Join-path $PSScriptRoot " winps_resource.dsc.yaml"
14
- $cacheFilePath_v5 = Join-Path $env: LocalAppData " dsc" " WindowsPSAdapterCache.json"
14
+ if ($isWindows ) {
15
+ $cacheFilePath_v5 = Join-Path $env: LocalAppData " dsc" " WindowsPSAdapterCache.json"
16
+ }
15
17
}
16
18
AfterAll {
17
19
$env: PSModulePath = $OldPSModulePath
18
20
}
19
21
20
22
BeforeEach {
21
- Remove-Item - Force - ea SilentlyContinue - Path $cacheFilePath_v5
23
+ if ($isWindows ) {
24
+ Remove-Item - Force - ea SilentlyContinue - Path $cacheFilePath_v5
25
+ }
22
26
}
23
27
24
28
It ' Windows PowerShell adapter supports File resource' - Skip:(! $IsWindows ){
You can’t perform that action at this time.
0 commit comments