Skip to content

Commit a2b9b7e

Browse files
Update .build/Test-ShouldRunDscResourceIntegrationTests.ps1
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 65f9220 commit a2b9b7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.build/Test-ShouldRunDscResourceIntegrationTests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ function Get-PrivateFunctionsUsedByCommand
245245
}
246246

247247
$privateFunctions = @()
248-
$content = Get-Content -Path $commandFile -Raw
249-
248+
$content = Get-Content -Path $commandFile -Raw -ErrorAction SilentlyContinue
250249
# Look for direct function calls to private functions
251250
$privateFunctionFiles = Get-ChildItem -Path (Join-Path -Path $SourcePath -ChildPath "Private") -Filter "*.ps1" | Select-Object -ExpandProperty BaseName
252251
foreach ($privateFunction in $privateFunctionFiles)

0 commit comments

Comments
 (0)