Skip to content

Commit 1f0bd3c

Browse files
tests: on_target: fix location regex
Fix location regex. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 95bc043 commit 1f0bd3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/on_target/tests/test_functional/test_sampling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def test_sampling(t91x_board, hex_file):
4747

4848
# Extract coordinates from UART output
4949
values = t91x_board.uart.extract_value( \
50-
r"location_event_handler: Got location: lat: ([\d.]+), lon: ([\d.]+), acc: ([\d.]+), method: ([\d.]+)")
50+
r"location_event_handler: Got location: lat: ([\d.]+), lon: ([\d.]+), acc: ([\d.]+), method: Wi-Fi")
5151
assert values
5252

53-
lat, lon, acc, method = values
53+
lat, lon, acc = values
5454
assert abs(float(lat) - 61.5) < 2 and abs(float(lon) - 10.5) < 1

0 commit comments

Comments
 (0)