Skip to content

Commit cdc78f1

Browse files
Use the build soruce directory as the root
1 parent 79c94b1 commit cdc78f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/DscResource/PSResourceGetDSCResource.Tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ function SetupDsc {
1818

1919
$script:dscExe = Get-Command -name dsc -CommandType Application | Select-Object -First 1
2020

21-
$expectedModulePath = Join-Path $env:BUILD_SOURCESDIRECTORY 'out'
22-
$resources = Get-ChildItem $expectedModulePath/*resource.json -ErrorAction SilentlyContinue
21+
$resources = Get-ChildItem $env:BUILD_SOURCESDIRECTORY/*resource.json -ErrorAction SilentlyContinue -Recurse -Verbose
2322

2423
if (-not $script:dscExe) {
2524
throw "Could not find dsc executable in PATH after setup."

0 commit comments

Comments
 (0)