feat(gpio): allows mixing digital and analog read/write operations #4916
4 fail, 28 pass in 46m 56s
76 files 76 suites 46m 56s ⏱️
32 tests 28 ✅ 0 💤 4 ❌
201 runs 180 ✅ 0 💤 21 ❌
Results for commit 97d78bc.
Annotations
Check warning on line 0 in validation.nvs.test_nvs
github-actions / Test Results
2 out of 21 runs failed: test_nvs (validation.nvs.test_nvs)
./artifacts/tests-results-wokwi-esp32-validation/validation/nvs/esp32/nvs0.xml [took 39s]
./artifacts/tests-results-wokwi-esp32-validation/validation/nvs/esp32/nvs1.xml [took 39s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "Current counter value: 2"
Bytes in current buffer (color code eliminated): n:3476 entry 0x400805b4
Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-17-03-199142/test_nvs/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7fddd2aadbe0>
pattern = 'Current counter value: 2', expect_all = False, not_matching = ()
args = (), kwargs = {}, patterns = ['Current counter value: 2'], res = []
debug_str = 'Not found "Current counter value: 2"\nBytes in current buffer (color code eliminated): n:3476 entry 0x400805b4\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-17-03-199142/test_nvs/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
> index = func(self, pattern, *args, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:153: in expect_exact
return self.pexpect_proc.expect_exact(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/spawnbase.py:432: in expect_exact
return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:181: in expect_loop
return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x7fddd2a37d90>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7fddd2aad160>\nsearcher: searcher_string:\n 0: b'Current counter value: 2'")
def timeout(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn.after = TIMEOUT
index = self.searcher.timeout_index
if index >= 0:
spawn.match = TIMEOUT
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = TIMEOUT(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7fddd2aad160>
E searcher: searcher_string:
E 0: b'Current counter value: 2'
E <pytest_embedded.log.PexpectProcess object at 0x7fddd2aad160>
E searcher: searcher_string:
E 0: b'Current counter value: 2'
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:144: TIMEOUT
The above exception was the direct cause of the following exception:
dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7fddd2aadbe0>
def test_nvs(dut):
LOGGER = logging.getLogger(__name__)
LOGGER.info("Expecting counter value 0")
dut.expect_exact("Current counter value: 0")
LOGGER.info("Expecting counter value 1")
dut.expect_exact("Current counter value: 1")
LOGGER.info("Expecting counter value 2")
> dut.expect_exact("Current counter value: 2")
tests/validation/nvs/test_nvs.py:14:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7fddd2aadbe0>
pattern = 'Current counter value: 2', expect_all = False, not_matching = ()
args = (), kwargs = {}, patterns = ['Current counter value: 2'], res = []
debug_str = 'Not found "Current counter value: 2"\nBytes in current buffer (color code eliminated): n:3476 entry 0x400805b4\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-17-03-199142/test_nvs/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
index = func(self, pattern, *args, **kwargs)
except (pexpect.EOF, pexpect.TIMEOUT) as e:
debug_str = (
f'Not found "{pattern!s}"\n'
f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
f'Please check the full log here: {self.logfile}'
)
> raise e.__class__(debug_str) from e
E pexpect.exceptions.TIMEOUT: Not found "Current counter value: 2"
E Bytes in current buffer (color code eliminated): n:3476 entry 0x400805b4
E Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-17-03-199142/test_nvs/dut.log
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:83: TIMEOUT
Check warning on line 0 in validation.i2c_master.test_i2c_master
github-actions / Test Results
All 7 runs failed: test_i2c_master (validation.i2c_master.test_i2c_master)
./artifacts/tests-results-wokwi-esp32-validation/validation/i2c_master/esp32/i2c_master.xml [took 4m 0s]
./artifacts/tests-results-wokwi-esp32c3-validation/validation/i2c_master/esp32c3/i2c_master.xml [took 4m 0s]
./artifacts/tests-results-wokwi-esp32c6-validation/validation/i2c_master/esp32c6/i2c_master.xml [took 4m 0s]
./artifacts/tests-results-wokwi-esp32h2-validation/validation/i2c_master/esp32h2/i2c_master.xml [took 4m 0s]
./artifacts/tests-results-wokwi-esp32p4-validation/validation/i2c_master/esp32p4/i2c_master.xml [took 4m 0s]
./artifacts/tests-results-wokwi-esp32s2-validation/validation/i2c_master/esp32s2/i2c_master.xml [took 4m 0s]
./artifacts/tests-results-wokwi-esp32s3-validation/validation/i2c_master/esp32s3/i2c_master.xml [took 4m 0s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)', re.MULTILINE)"
Bytes in current buffer (color code eliminated): Wokwi CLI v0.15.3 (d85c2346ef21) Connected to Wokwi Simulation API 1.0.0-20250222-g0273d6d1 Starting simulation... API Error: You have used up your Free plan monthly CI minute... (total 243 bytes)
Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-11-05-035614/test_i2c_master/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f9fa4d81be0>
pattern = re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)', re.MULTILINE)
expect_all = False, not_matching = (), args = (), kwargs = {'timeout': 240}
patterns = [re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)', re.MULTILINE)]
res = []
debug_str = 'Not found "re.compile(b\'^[-]+\\\\s*(\\\\d+) Tests (\\\\d+) Failures (\\\\d+) Ignored\\\\s*(?P<result>OK|FAIL)\', re....al 243 bytes)\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-11-05-035614/test_i2c_master/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
> index = func(self, pattern, *args, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:131: in expect
return self.pexpect_proc.expect(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/spawnbase.py:354: in expect
return self.expect_list(compiled_pattern_list,
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/spawnbase.py:383: in expect_list
return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:181: in expect_loop
return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x7f9fa4d81fd0>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7f9fa4d81160>\nsearcher: searcher_re:\n 0: re.compile(b'^[-]+\\\\s*(\\\\d+) Tests (\\\\d+) Failures (\\\\d+) Ignored\\\\s*(?P<result>OK|FAIL)')")
def timeout(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn.after = TIMEOUT
index = self.searcher.timeout_index
if index >= 0:
spawn.match = TIMEOUT
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = TIMEOUT(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7f9fa4d81160>
E searcher: searcher_re:
E 0: re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)')
E <pytest_embedded.log.PexpectProcess object at 0x7f9fa4d81160>
E searcher: searcher_re:
E 0: re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)')
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:144: TIMEOUT
The above exception was the direct cause of the following exception:
dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f9fa4d81be0>
def test_i2c_master(dut):
> dut.expect_unity_test_output(timeout=240)
tests/validation/i2c_master/test_i2c_master.py:2:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:180: in expect_unity_test_output
self.expect(UNITY_SUMMARY_LINE_REGEX, timeout=timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f9fa4d81be0>
pattern = re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)', re.MULTILINE)
expect_all = False, not_matching = (), args = (), kwargs = {'timeout': 240}
patterns = [re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)', re.MULTILINE)]
res = []
debug_str = 'Not found "re.compile(b\'^[-]+\\\\s*(\\\\d+) Tests (\\\\d+) Failures (\\\\d+) Ignored\\\\s*(?P<result>OK|FAIL)\', re....al 243 bytes)\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-11-05-035614/test_i2c_master/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
index = func(self, pattern, *args, **kwargs)
except (pexpect.EOF, pexpect.TIMEOUT) as e:
debug_str = (
f'Not found "{pattern!s}"\n'
f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
f'Please check the full log here: {self.logfile}'
)
> raise e.__class__(debug_str) from e
E pexpect.exceptions.TIMEOUT: Not found "re.compile(b'^[-]+\\s*(\\d+) Tests (\\d+) Failures (\\d+) Ignored\\s*(?P<result>OK|FAIL)', re.MULTILINE)"
E Bytes in current buffer (color code eliminated): Wokwi CLI v0.15.3 (d85c2346ef21) Connected to Wokwi Simulation API 1.0.0-20250222-g0273d6d1 Starting simulation... API Error: You have used up your Free plan monthly CI minute... (total 243 bytes)
E Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-11-05-035614/test_i2c_master/dut.log
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:83: TIMEOUT
Check warning on line 0 in validation.hello_world.test_hello_world
github-actions / Test Results
5 out of 7 runs failed: test_hello_world (validation.hello_world.test_hello_world)
./artifacts/tests-results-wokwi-esp32-validation/validation/hello_world/esp32/hello_world.xml [took 30s]
./artifacts/tests-results-wokwi-esp32h2-validation/validation/hello_world/esp32h2/hello_world.xml [took 30s]
./artifacts/tests-results-wokwi-esp32p4-validation/validation/hello_world/esp32p4/hello_world.xml [took 30s]
./artifacts/tests-results-wokwi-esp32s2-validation/validation/hello_world/esp32s2/hello_world.xml [took 30s]
./artifacts/tests-results-wokwi-esp32s3-validation/validation/hello_world/esp32s3/hello_world.xml [took 30s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "Hello Arduino!"
Bytes in current buffer (color code eliminated): .com/pricing.
Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-06-30-997447/test_hello_world/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f37ba26dbe0>
pattern = 'Hello Arduino!', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Hello Arduino!'], res = []
debug_str = 'Not found "Hello Arduino!"\nBytes in current buffer (color code eliminated): .com/pricing.\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-06-30-997447/test_hello_world/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
> index = func(self, pattern, *args, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:153: in expect_exact
return self.pexpect_proc.expect_exact(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/spawnbase.py:432: in expect_exact
return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:181: in expect_loop
return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x7f37ba26dfd0>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7f37ba26d160>\nsearcher: searcher_string:\n 0: b'Hello Arduino!'")
def timeout(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn.after = TIMEOUT
index = self.searcher.timeout_index
if index >= 0:
spawn.match = TIMEOUT
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = TIMEOUT(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7f37ba26d160>
E searcher: searcher_string:
E 0: b'Hello Arduino!'
E <pytest_embedded.log.PexpectProcess object at 0x7f37ba26d160>
E searcher: searcher_string:
E 0: b'Hello Arduino!'
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:144: TIMEOUT
The above exception was the direct cause of the following exception:
dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f37ba26dbe0>
def test_hello_world(dut):
> dut.expect_exact("Hello Arduino!")
tests/validation/hello_world/test_hello_world.py:2:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f37ba26dbe0>
pattern = 'Hello Arduino!', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Hello Arduino!'], res = []
debug_str = 'Not found "Hello Arduino!"\nBytes in current buffer (color code eliminated): .com/pricing.\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-06-30-997447/test_hello_world/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
index = func(self, pattern, *args, **kwargs)
except (pexpect.EOF, pexpect.TIMEOUT) as e:
debug_str = (
f'Not found "{pattern!s}"\n'
f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
f'Please check the full log here: {self.logfile}'
)
> raise e.__class__(debug_str) from e
E pexpect.exceptions.TIMEOUT: Not found "Hello Arduino!"
E Bytes in current buffer (color code eliminated): .com/pricing.
E Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-06-30-997447/test_hello_world/dut.log
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:83: TIMEOUT
Check warning on line 0 in validation.gpio.test_gpio
github-actions / Test Results
All 7 runs failed: test_gpio (validation.gpio.test_gpio)
./artifacts/tests-results-wokwi-esp32-validation/validation/gpio/esp32/gpio.xml [took 30s]
./artifacts/tests-results-wokwi-esp32c3-validation/validation/gpio/esp32c3/gpio.xml [took 30s]
./artifacts/tests-results-wokwi-esp32c6-validation/validation/gpio/esp32c6/gpio.xml [took 30s]
./artifacts/tests-results-wokwi-esp32h2-validation/validation/gpio/esp32h2/gpio.xml [took 30s]
./artifacts/tests-results-wokwi-esp32p4-validation/validation/gpio/esp32p4/gpio.xml [took 30s]
./artifacts/tests-results-wokwi-esp32s2-validation/validation/gpio/esp32s2/gpio.xml [took 31s]
./artifacts/tests-results-wokwi-esp32s3-validation/validation/gpio/esp32s3/gpio.xml [took 30s]
Raw output
pexpect.exceptions.TIMEOUT: Not found "Button test"
Bytes in current buffer (color code eliminated): m/pricing.
Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-05-34-257466/test_gpio/dut.log
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f8b12831be0>
pattern = 'Button test', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Button test'], res = []
debug_str = 'Not found "Button test"\nBytes in current buffer (color code eliminated): m/pricing.\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-05-34-257466/test_gpio/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
> index = func(self, pattern, *args, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:153: in expect_exact
return self.pexpect_proc.expect_exact(pattern, **kwargs)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/spawnbase.py:432: in expect_exact
return exp.expect_loop(timeout)
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:181: in expect_loop
return self.timeout(e)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pexpect.expect.Expecter object at 0x7f8b12832120>
err = TIMEOUT("<pytest_embedded.log.PexpectProcess object at 0x7f8b12831160>\nsearcher: searcher_string:\n 0: b'Button test'")
def timeout(self, err=None):
spawn = self.spawn
spawn.before = spawn._before.getvalue()
spawn.after = TIMEOUT
index = self.searcher.timeout_index
if index >= 0:
spawn.match = TIMEOUT
spawn.match_index = index
return index
else:
spawn.match = None
spawn.match_index = None
msg = str(spawn)
msg += '\nsearcher: %s' % self.searcher
if err is not None:
msg = str(err) + '\n' + msg
exc = TIMEOUT(msg)
exc.__cause__ = None # in Python 3.x we can use "raise exc from None"
> raise exc
E pexpect.exceptions.TIMEOUT: <pytest_embedded.log.PexpectProcess object at 0x7f8b12831160>
E searcher: searcher_string:
E 0: b'Button test'
E <pytest_embedded.log.PexpectProcess object at 0x7f8b12831160>
E searcher: searcher_string:
E 0: b'Button test'
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pexpect/expect.py:144: TIMEOUT
The above exception was the direct cause of the following exception:
dut = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f8b12831be0>
def test_gpio(dut):
LOGGER = logging.getLogger(__name__)
> dut.expect_exact("Button test")
tests/validation/gpio/test_gpio.py:7:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pytest_embedded_wokwi.dut.WokwiDut object at 0x7f8b12831be0>
pattern = 'Button test', expect_all = False, not_matching = (), args = ()
kwargs = {}, patterns = ['Button test'], res = []
debug_str = 'Not found "Button test"\nBytes in current buffer (color code eliminated): m/pricing.\nPlease check the full log here: /tmp/pytest-embedded/2025-02-28_12-05-34-257466/test_gpio/dut.log'
@functools.wraps(func)
def wrapper(
self, pattern, *args, expect_all: bool = False, not_matching: List[Union[str, re.Pattern]] = (), **kwargs
) -> Union[Union[Match, AnyStr], List[Union[Match, AnyStr]]]:
patterns = to_list(pattern)
res = []
while patterns:
try:
index = func(self, pattern, *args, **kwargs)
except (pexpect.EOF, pexpect.TIMEOUT) as e:
debug_str = (
f'Not found "{pattern!s}"\n'
f'Bytes in current buffer (color code eliminated): {self.pexpect_proc.buffer_debug_str}\n'
f'Please check the full log here: {self.logfile}'
)
> raise e.__class__(debug_str) from e
E pexpect.exceptions.TIMEOUT: Not found "Button test"
E Bytes in current buffer (color code eliminated): m/pricing.
E Please check the full log here: /tmp/pytest-embedded/2025-02-28_12-05-34-257466/test_gpio/dut.log
/opt/hostedtoolcache/Python/3.13.2/x64/lib/python3.13/site-packages/pytest_embedded/dut.py:83: TIMEOUT
Check notice on line 0 in .github
github-actions / Test Results
32 tests found
There are 32 tests, see "Raw output" for the full list of tests.
Raw output
auto_baudrate_test
basic_transmission_test
begin_when_running_test
change_baudrate_test
change_cpu_frequency_test
change_pins_test
disabled_uart_calls_test
enabled_uart_calls_test
end_when_stopped_test
periman_test
psram_found
resize_buffers_test
test_calloc_success
test_fail
test_malloc_fail
test_malloc_success
test_memcpy
test_memset_all_ones
test_memset_all_zeroes
test_memset_alternating
test_memset_random
test_pass
test_realloc_success
timer_clock_select_test
timer_divider_test
timer_interrupt_test
timer_read_test
validation.gpio.test_gpio ‑ test_gpio
validation.hello_world.test_hello_world ‑ test_hello_world
validation.i2c_master.test_i2c_master ‑ test_i2c_master
validation.nvs.test_nvs ‑ test_nvs
validation.wifi.test_wifi ‑ test_wifi