Skip to content

Commit 1614fce

Browse files
committed
add test tracing
1 parent 0219972 commit 1614fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/apt/test/apt.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Describe 'Apt resource tests' {
2727
if (-not $aptExists) {
2828
Set-ItResult -Skip -Because "Apt not found"
2929
}
30-
$out = dsc config get -p $yamlPath | ConvertFrom-Json -Depth 10
31-
$LASTEXITCODE | Should -Be 0
30+
$out = dsc config get -p $yamlPath 2> "$TestDrive/stderr.txt" | ConvertFrom-Json -Depth 10
31+
$LASTEXITCODE | Should -Be 0 -Because (Get-Content "$TestDrive/stderr.txt")
3232
$exists = $null -ne (Get-Command $pkgName -CommandType Application -ErrorAction Ignore)
3333
$observed = $out.results[1].result.actualState._exist
3434
$observed | Should -Be $exists

0 commit comments

Comments
 (0)