File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,14 @@ Describe 'PowerShell adapter resource tests' {
78
78
Rename-Item - Path " $PSScriptRoot /TestClassResource" - NewName " _TestClassResource"
79
79
80
80
try {
81
+ $psmp = " `$ env:PSModulePath" + [System.IO.Path ]::PathSeparator+ $TestDrive
81
82
$yaml = @"
82
83
`$ schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
83
84
resources:
84
85
- name: Working with class-based resources
85
86
type: Microsoft.DSC/PowerShell
86
87
properties:
87
- psmodulepath: `$ env:PSModulePath; $TestDrive
88
+ psmodulepath: $psmp
88
89
resources:
89
90
- name: Class-resource Info
90
91
type: TestClassResource/TestClassResource
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Describe 'PowerShell adapter resource tests' {
25
25
26
26
It ' Discovery includes class-based resources' {
27
27
28
- $r = dsc resource list * - a Microsoft.DSC/ PowerShell
28
+ $r = dsc resource list ' * ' - a Microsoft.DSC/ PowerShell
29
29
$LASTEXITCODE | Should - Be 0
30
30
$resources = $r | ConvertFrom-Json
31
31
($resources | ? {$_.Type -eq ' TestClassResource/TestClassResource' }).Count | Should - Be 1
You can’t perform that action at this time.
0 commit comments