espressif / pytest-embedded

A pytest plugin that designed for embedded testing
https://docs.espressif.com/projects/pytest-embedded/en/latest/
MIT License
93 stars 26 forks source link

feat: expect not matching keyword support #258

Closed horw closed 9 months ago

horw commented 10 months ago

Support for a not_matching argument has been added to the expect function. The function now utilizes re.search() to search for matches of the encoded keywords in self.pexpect_proc.before.

Closes #257

horw commented 10 months ago

one general question, shall we implement it in _pexpect_func decorator?

expect_exact should also have this kwargs support.

I think it is a good idea! Let me move it here.

horw commented 9 months ago

I have updated this PR. Let's see the tests turn green!

hfudev commented 9 months ago

Thank you! LGTM!