Commit Graph

3 Commits

Author SHA1 Message Date
Yong Cong Sin 58f5c8ab13 sensors: add new channel `SENSOR_CHAN_POS_DXYZ`
Add new channel: `SENSOR_CHAN_POS_DXYZ`, so that it is
consistent with other 3-axis channels.

Updated pytest, `sensor_shell` & `fake_sensor` accordingly.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2026-04-20 17:19:28 +08:00
Yong Cong Sin e94ddec2f0 samples: sensor: sensor_shell: update pytest to validate fix
Update the pytest script to exercise the entire
`sensor_channel_name` table with `parse_named_int()`.

The `gauge_desired_charging_current` is selected because
it is the last one in the table before `all`, `all` is not
used because `sensor get sensor@0 all` doesn't return anything.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2026-04-20 17:19:28 +08:00
Yong Cong Sin 1c3b0a2835 samples: sensor: sensor_shell: add pytest
Use pytest to test the shell commands.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2026-04-20 17:18:19 +08:00