Skip to content

functest: make scripts print PASS: on success#1042

Merged
kostyanf14 merged 1 commit into
HCK-CI:masterfrom
elizashurov:functest/standardize-pass-output
Jul 16, 2026
Merged

functest: make scripts print PASS: on success#1042
kostyanf14 merged 1 commit into
HCK-CI:masterfrom
elizashurov:functest/standardize-pass-output

Conversation

@elizashurov

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Elizabeth Ashurov <eashurov@redhat.com>
@elizashurov
elizashurov requested a review from kostyanf14 July 16, 2026 10:51

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request standardizes the success output of several functional test cases and PowerShell scripts by replacing various success strings with a consistent 'PASS:' prefix. Feedback on these changes suggests improving the device status validation in check_balloon_pnp_device.ps1 by explicitly checking for an 'OK' status rather than just checking if it is not in an 'Error' state, which prevents false positives from other non-working states.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines 13 to 15
if ($d.Status -eq 'Error') {
throw 'Balloon device found but in Error state: ' + $d.ConfigManagerErrorCode
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Checking only for the 'Error' status can lead to false positives where the device is in another non-working state (such as 'Disabled', 'Degraded', or 'Unknown') but the script still prints PASS:, causing the test to pass. It is safer to verify that the status is explicitly 'OK' to ensure the device is fully functional.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elizashurov in general AI is correct, but not related to this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kostyanf14 I will fix in separate PR

@kostyanf14
kostyanf14 merged commit 2a353a9 into HCK-CI:master Jul 16, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants