mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
2d801e20f3
TestCollectDeviceSMARTStandby and its observability twin stub smartctl's execution but not the device-class probe, so collectDeviceSMART fell through to the *runner's* real /sys/block/sda/queue/rotational. smartctlArgs only sends the -n standby guard when the disk is not a confirmed SSD (#1516), and smartctlArgsUseStandbyExitStatus gates the standby reading of exit status 3 on that guard having been sent. On a Linux host whose own /dev/sda is non-rotational the guard is dropped, exit 3 stops meaning standby, and both tests fail deterministically: run smartctl for /dev/sda: exit status 3 They pass on macOS only because linuxNonRotationalBlockDevice returns false off Linux, and on Linux only where /dev/sda is absent or spinning. That makes the release-qualification suite unrunnable on an ordinary SSD-backed Linux worker. Pin the probed disk to rotational through the package's existing stubLinuxSysfs seam so the guard is always in play. Product behaviour is untouched; this only stops two unit tests depending on the hardware underneath them.