File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,13 @@ Describe 'PowerShell adapter resource tests' {
12
12
$pwshConfigPath = Join-path $PSScriptRoot " class_ps_resources.dsc.yaml"
13
13
$winpsConfigPath = Join-path $PSScriptRoot " winps_resource.dsc.yaml"
14
14
15
- $cacheFilePath = Join-Path $env: LocalAppData " dscv3classcache.json"
16
15
if ($IsLinux -or $IsMacOS ) {
17
16
$cacheFilePath = Join-Path $env: HOME " .dsc" " dscv3classcache.json"
18
- }
17
+ }
18
+ else
19
+ {
20
+ $cacheFilePath = Join-Path $env: LocalAppData " dscv3classcache.json"
21
+ }
19
22
$cacheFilePath_v5 = Join-Path $env: LocalAppData " dscv3classcache-v5.json"
20
23
}
21
24
AfterAll {
Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ Describe 'PowerShell adapter resource tests' {
10
10
$OldPSModulePath = $env: PSModulePath
11
11
$env: PSModulePath += [System.IO.Path ]::PathSeparator + $PSScriptRoot
12
12
13
- $cacheFilePath = Join-Path $env: LocalAppData " dscv3classcache.json"
14
13
if ($IsLinux -or $IsMacOS ) {
15
14
$cacheFilePath = Join-Path $env: HOME " .dsc" " dscv3classcache.json"
16
- }
15
+ }
16
+ else
17
+ {
18
+ $cacheFilePath = Join-Path $env: LocalAppData " dscv3classcache.json"
19
+ }
17
20
$cacheFilePath_v5 = Join-Path $env: LocalAppData " dscv3classcache-v5.json"
18
21
}
19
22
AfterAll {
You can’t perform that action at this time.
0 commit comments