From 84bea04c35da3ed08a9ad41ce126f758d7b989f5 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Tue, 5 Sep 2023 14:09:30 +0530 Subject: [PATCH] feat: Support hard_reset without stub hard_reset() used the default arguments of the decorator use_esptool(), due to which stub is required for performing a hard_reset(). --- pytest-embedded-serial-esp/pytest_embedded_serial_esp/serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest-embedded-serial-esp/pytest_embedded_serial_esp/serial.py b/pytest-embedded-serial-esp/pytest_embedded_serial_esp/serial.py index b0dbcb8f..0b646f13 100644 --- a/pytest-embedded-serial-esp/pytest_embedded_serial_esp/serial.py +++ b/pytest-embedded-serial-esp/pytest_embedded_serial_esp/serial.py @@ -202,7 +202,7 @@ def wrapper(self, *args, **kwargs): def _start(self): self.hard_reset() - @use_esptool() + @use_esptool(hard_reset_after=True, no_stub=True) def hard_reset(self): """Hard reset your espressif device""" pass