* fix(tests): Add missing newlines to output * fix(tests): Improve fibonacci test * fix(tests): Remove redundant targets from json * fix(wokwi): Checkout proper base branch for wokwi tests * feat(logging): Add logging to some tests to improve debugging * fix(ci): Make CI more permissive and improve messages * fix(tests): Bump pytest-embedded version to support P4
15 lines
390 B
Python
15 lines
390 B
Python
import logging
|
|
|
|
def test_gpio(dut):
|
|
LOGGER = logging.getLogger(__name__)
|
|
|
|
dut.expect_exact("Button test")
|
|
|
|
LOGGER.info("Expecting button press 1")
|
|
dut.expect_exact("Button pressed 1 times")
|
|
|
|
LOGGER.info("Expecting button press 2")
|
|
dut.expect_exact("Button pressed 2 times")
|
|
|
|
LOGGER.info("Expecting button press 3")
|
|
dut.expect_exact("Button pressed 3 times")
|