Skip to content

Commit 8ca239f

Browse files
committed
acceptance_test: log update and filterd update count
1 parent b0ae5ee commit 8ca239f

File tree

1 file changed

+4
-0
lines changed
  • acceptance_test/assets/bwats-release/jobs/check-updates/templates

1 file changed

+4
-0
lines changed

acceptance_test/assets/bwats-release/jobs/check-updates/templates/run.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ Write-Host "Session: $Session"
99
$Searcher = $Session.CreateUpdateSearcher()
1010
Write-Host "Searcher: $Searcher"
1111
$UninstalledUpdates = $Searcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0").Updates
12+
Write-Host "UninstalledUpdates.Count: $($UninstalledUpdates.Count) "
13+
1214
$FilteredUpdates = @($UninstalledUpdates | `
1315
Where-Object {$_.Title -notmatch "KB2267602" -And $_.Title -NotMatch "KB4052623"})
16+
Write-Host "FilteredUpdates.Count: $($FilteredUpdates.Count)"
17+
1418
if ($FilteredUpdates.Count -ne 0) {
1519
Write-Log "The following updates are not currently installed:"
1620
foreach ($Update in $FilteredUpdates) {

0 commit comments

Comments
 (0)