fix(test): tighten diagnostics check exit code assertion in CLI core test #915
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user