mirror of
https://github.com/espressif/esp-idf.git
synced 2026-01-14 18:55:43 +00:00
test(pcnt): fix pcnt example pytest
This commit is contained in:
@@ -19,6 +19,6 @@ def test_rotary_encoder(dut: Dut) -> None:
|
||||
dut.expect_exact('add watch points and register callbacks')
|
||||
dut.expect_exact('clear pcnt unit')
|
||||
dut.expect_exact('start pcnt unit')
|
||||
res = dut.expect(r'Pulse count: (\d+)')
|
||||
res = dut.expect(r'(?:Pulse count|Watch point event, count): (-?\d+)')
|
||||
count_val = res.group(1).decode('utf8')
|
||||
assert -100 <= int(count_val) <= 100
|
||||
|
||||
Reference in New Issue
Block a user