Skip to content

Commit 7b4d8cf

Browse files
Hake Huangmmahadevan108
authored andcommitted
samples: sesnor: thermo: add harness_config for testing
add harness_config for console for testing Signed-off-by: Hake Huang <[email protected]>
1 parent c6140b6 commit 7b4d8cf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

samples/sensor/thermometer/sample.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ sample:
33
tests:
44
sample.sensor.thermometer:
55
tags: sensors
6-
harness: sensor
76
filter: dt_alias_exists("ambient-temp0")
87
integration_platforms:
98
- nrf52840dk/nrf52840 # mcp9700a
109
- frdm_k22f # tcn75a
1110
- robokit1 # ntc_thermistor
1211
- adi_eval_adin1110ebz # adt7420
1312
- frdm_mcxn947/mcxn947/cpu0 # p3t1755
13+
harness: console
14+
harness_config:
15+
fixture: sensor_ambient_temp
16+
type: multi_line
17+
regex:
18+
- "Thermometer Example (.*)"
19+
- "Temperature device is 0x[0-9|a-z]+, name is [a-z|0-9]+@[a-z|0-9]+"
20+
- "Temperature is [0-9|.]+°C"

0 commit comments

Comments
 (0)