Repository navigation
Fault walkthrough
A test is only worth something if it fails the boards it should fail. The
simulated board can be broken on purpose with --fault, and the test suite
checks that each fault fails exactly the step listed here and nothing else.
bench demo --fault rail_slow| Fault | Defect on a real board | Caught by | What the station prints |
|---|---|---|---|
short |
short circuit on the 12 V input | Power on | supply collapsed to 8.00 V (current limit) -- power removed, possible short circuit |
inrush_spike |
input capacitor too large: 4 A for 2 ms | Power on (scope only) | Inrush peak (scope) out of limits |
rail_slow |
soft-start capacitor too large: 3.3 V ramps too slowly | Power on (scope only) | Rail 3V3 ramp out of limits |
rail_1v05 |
1.05 V core rail missing | Supply rails | 1V05 out of limits |
Why short aborts everything. When the supply goes into current limit, its
voltage collapses. The station switches the output off at once and skips every
later step: a board with a short must not stay powered while the sequence
carries on, and no later result would mean anything. The serial number is
UNKNOWN in the report, because the board never booted far enough to be asked.
Why the scope is needed for inrush_spike and rail_slow. The station also
polls the supply's current during the first 0.5 s, and that reading stays at a
harmless 2.2 A: a 2 ms spike falls between two queries. Likewise the DMM
measures the 3.3 V rail long after it has settled. Only the oscilloscope,
armed before the supply switches on, sees the 4 A peak and the slow 10–90 %
ramp. Run the station without the scope section and both boards pass — which
is exactly the point of having the scope.
| Fault | Defect on a real board | Caught by | What the station prints |
|---|---|---|---|
boot_hang |
kernel hangs in a SATA reset loop | Boot, Boot log |
no login prompt within 10 s, last line: … ata1: limiting SATA link speed to 3.0 Gbps and SATA link problems (sata-link); Boot log stops early (boot-incomplete)
|
sata_slow |
marginal SATA signal path: link falls back to 3.0 Gbps, board otherwise fine | Boot log only | SATA link problems (sata-link) |
can_missing |
CAN controller not detected, no error printed | Boot log only | CAN interface no longer detected (can-missing) |
sata_slow and can_missing are the faults that make a golden log worth it:
the board boots, logs in and passes every on-device check. Nothing in the
sequence talks to the CAN controller, and the SSD still answers SMART queries.
Only the comparison with the boot log of a good board shows the slower link
and the missing driver line. See Golden boot log.
| Fault | Defect on a real board | Caught by | What the station prints |
|---|---|---|---|
usb_port |
one dead USB port | USB ports |
Test sticks detected out of limits (3 of 4) |
smart |
SSD with reallocated and pending sectors | Storage |
Reallocated sectors, Pending sectors out of limits (312 and 24) |
no_link |
no Ethernet link | Ethernet | Link, Speed out of limits |
overtemp |
missing thermal pad, CPU runs hot | Temperature | CPU temperature out of limits |
smart is a nice example of a check that reads more than the headline: the
drive's own overall health still says PASSED, but 312 reallocated sectors
on a new SSD mean it will not last. The limits are in station.yaml
(device.smart.max_reallocated, max_pending).
Most failures do not stop the sequence: the remaining steps still run, so the report shows everything that is wrong with the board in one go — a missing 1.05 V rail, for example, still lets the board boot and be checked. Two things cut the run short:
- No boot. If the board never reaches the login prompt, the on-device steps (idle current, identity, memory, storage, USB, Ethernet, temperature, RTC) are skipped; the boot log comparison still runs and explains why.
-
Abort. A short circuit, or an instrument that stops answering, skips every
later step. An instrument problem ends the step with
ERRORinstead ofFAIL: the station, not the board, needs attention.
bench-automation · MIT licensed · instrument names are trademarks of their owners; bench-automation is not affiliated with them.
bench-automation
Links
Related tools