Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ if (-not $d) {
throw 'Balloon PnP device (VEN_1AF4 DEV_1002/1045) not found in device list'
}

if ($d.Status -eq 'Error') {
throw 'Balloon device found but in Error state: ' + $d.ConfigManagerErrorCode
if ($d.Status -ne 'OK') {
throw "Balloon device found but not in OK state: $($d.Status) (Error code: $($d.ConfigManagerErrorCode))"
}

Write-Output "PASS: Balloon device found - $($d.FriendlyName) [$($d.Status)]"
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ if ($svc.Status -ne 'Running') {
}

$svc = Get-Service BalloonService
if ($svc.Status -ne 'Running') {
throw "BalloonService did not reach Running state (current: $($svc.Status))"
}

Write-Output "PASS: BalloonService is $($svc.Status)"
Loading