Skip to content

Commit

Permalink
[nrf fromtree] samples: sensor: qdec: Move console regex to each test
Browse files Browse the repository at this point in the history
Harness_config defined in the 'common' section is discarded
when test adds fixture to it's harness_config.

Signed-off-by: Sebastian Głąb <[email protected]>
(cherry picked from commit 0fdfcad)
  • Loading branch information
nordic-segl authored and rlubos committed Apr 11, 2024
1 parent 35bde43 commit 22e2d87
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions samples/sensor/qdec/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ common:
tags: sensors
timeout: 5
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Quadrature decoder sensor test"
- "Position = (.*) degrees"

tests:
sample.sensor.qdec_sensor:
platform_allow: nucleo_f401re
harness_config:
fixture: fixture_mech_encoder
type: multi_line
ordered: true
regex:
- "Quadrature decoder sensor test"
- "Position = (.*) degrees"

sample.sensor.nrf_qdec_sensor:
platform_allow:
- nrf52840dk_nrf52840
Expand All @@ -27,3 +28,8 @@ tests:
- nrf54l15pdk_nrf54l15_cpuapp
harness_config:
fixture: gpio_loopback
type: multi_line
ordered: true
regex:
- "Quadrature decoder sensor test"
- "Position = (.*) degrees"

0 comments on commit 22e2d87

Please sign in to comment.