Running Pytest disables serial write within console

sethkaz
Posts: 2
Joined: Tue May 14, 2024 4:00 pm

Running Pytest disables serial write within console

Postby sethkaz » Thu Aug 29, 2024 7:10 pm

Background:
I'm writing some test automation for an ESP32-S3 based product and am using the `pytest_embedded_idf` tool to manage and script the steps. The steps include commanding the test interface, which is a separate ESP32-S3, to stimulate the device under test (DUT), and to read back the various info&statuses.

Currently, I'm able to write commands to the test_interface using the python script of `test_interface.write("params set gpio/first 1")`, and I'm able to look for returned strings using the `dut_bx.expect(r"Setting wifi/ssid (\w+)")` format. However, when I try to use `dut_bx.write("settings set wifi.ssid 12345")` it doesn't work.

I'm finding that the monitor is able to accept serial input before running pytest, but is set to disabled afterwards. This is fixed when I re-flash the firmware, but only until I re-run pytest.

Is there a setting within pytest or pytest_embedded_idf that allows for serial writes?

Who is online

Users browsing this forum: Majestic-12 [Bot] and 240 guests