fix(test): tighten diagnostics check exit code assertion in CLI core test #915

Merged
freemo merged 1 commits from fix/integration-cli-core-tolerant-rc into master 2026-03-14 00:43:51 +00:00
Owner

Summary

Fixes #900

  • Changed diagnostics --check exit code assertion from rc == 0 or rc == 1 to strict rc == 0
  • In a clean test environment, diagnostics should complete without finding errors
  • The previous tolerant check could not distinguish between "diagnostics found issues" (potentially expected) and "command crashed" (always a bug)

Part of Epic #892.

## Summary Fixes #900 - Changed `diagnostics --check` exit code assertion from `rc == 0 or rc == 1` to strict `rc == 0` - In a clean test environment, diagnostics should complete without finding errors - The previous tolerant check could not distinguish between "diagnostics found issues" (potentially expected) and "command crashed" (always a bug) Part of Epic #892.
freemo force-pushed fix/integration-cli-core-tolerant-rc from b743ee07b3 to 77a7813f0e 2026-03-14 00:37:37 +00:00 Compare
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-14 00:37:46 +00:00
freemo merged commit 77a7813f0e into master 2026-03-14 00:43:51 +00:00
freemo deleted branch fix/integration-cli-core-tolerant-rc 2026-03-14 00:43:51 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#915