Skip to content

feat(jetson): emit parseable OK/FAILED result lines from camera and fan checks#94

Merged
dakejahl merged 1 commit into
mainfrom
fix/jetson-check-output
Jun 26, 2026
Merged

feat(jetson): emit parseable OK/FAILED result lines from camera and fan checks#94
dakejahl merged 1 commit into
mainfrom
fix/jetson-check-output

Conversation

@dakejahl

Copy link
Copy Markdown
Contributor

Summary

The Jetson camera and fan check scripts now print one machine-readable result line per device, so the manufacturing bench test can surface the specific failure cause rather than a bare pass/fail.

Problem

The scripts emitted free-form, inconsistent output: check_cameras.sh printed Camera /dev/videoN: SUCCESS / FAILED to confirm status, and check_fan.sh buried its outcome in pages of ramp diagnostics. A caller could read the exit code but not why a check failed, so every failure collapsed to a generic boolean.

Solution

check_cameras.sh prints one parseable line per device — /dev/videoN: OK - <fps> or /dev/videoN: FAILED: <reason> (not found / no frames). check_fan.sh ends with a single fan: OK or fan: FAILED: <reason> line, the reason set at each failure point (e.g. rpm 0 at full speed, no pwm-fan device). Exit codes are unchanged.

@dakejahl
dakejahl merged commit 0cffee7 into main Jun 26, 2026
3 checks passed
@dakejahl
dakejahl deleted the fix/jetson-check-output branch June 26, 2026 21:21
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.

1 participant