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
+2 -2
View File
@@ -102,9 +102,9 @@ Diagnostics Command Plain Format
Should Contain ${result.stdout} summary:
Diagnostics Command Check Flag Returns Valid Exit Code
[Documentation] Diagnostics --check exits 0 (no errors) or 1 (has errors) without crashing
[Documentation] Diagnostics --check exits 0 when no errors are found
${result}= Run Process ${PYTHON} -m cleveragents diagnostics --check --format json timeout=60s
Should Be True ${result.rc} == 0 or ${result.rc} == 1 Unexpected exit code: ${result.rc}
Should Be Equal As Integers ${result.rc} 0 Diagnostics --check failed with rc=${result.rc}: ${result.stdout}
Should Contain ${result.stdout} "checks"
Should Contain ${result.stdout} "has_errors"