We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bcb0fc commit 65a1d80Copy full SHA for 65a1d80
1 file changed
dsc/tests/dsc_resource_list.tests.ps1
@@ -148,6 +148,7 @@ Describe 'Tests for listing resources' {
148
Set-Content -Path $manifestPath -Value $resource_manifest
149
Set-Content -Path $manifestDupePath -Value $resource_manifest
150
151
+ $oldPath = $env:DSC_RESOURCE_PATH
152
try {
153
$env:DSC_RESOURCE_PATH = $TestDrive + [System.IO.Path]::PathSeparator + $env:PATH
154
$resources = dsc resource list | ConvertFrom-Json
@@ -157,7 +158,7 @@ Describe 'Tests for listing resources' {
157
158
$group.Count | Should -Be 1 -Because ($resources | ConvertTo-Json -Depth 20)
159
}
160
} finally {
- $env:DSC_RESOURCE_PATH = $null
161
+ $env:DSC_RESOURCE_PATH = $oldPath
162
163
164
0 commit comments