Skip to content

Commit f879b86

Browse files
committed
change writing of test trace
1 parent 42c8b26 commit f879b86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/apt/test/apt.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Describe 'Apt resource tests' {
2828
Set-ItResult -Skip -Because "Apt not found"
2929
}
3030
$out = dsc -l trace config get -p $yamlPath 2> "$TestDrive/stderr.txt" | ConvertFrom-Json -Depth 10
31-
$LASTEXITCODE | Should -Be 0 -Because (Get-Content "$TestDrive/stderr.txt")
31+
write-verbose -verbose (Get-Content "$TestDrive/stderr.txt" | Out-String)
32+
$LASTEXITCODE | Should -Be 0
3233
$exists = $null -ne (Get-Command $pkgName -CommandType Application -ErrorAction Ignore)
3334
$observed = $out.results[1].result.actualState._exist
3435
$observed | Should -Be $exists

0 commit comments

Comments
 (0)