mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci: Don't swallow exception details from flashing process
If flashing fails, throw an exception that includes some information about the failure.
This commit is contained in:
parent
35f82a3b30
commit
88d0d1fa02
@ -263,14 +263,15 @@ class IDFDUT(DUT.SerialDUT):
|
|||||||
:param: erase_nvs: whether erase NVS partition during flash
|
:param: erase_nvs: whether erase NVS partition during flash
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
|
last_error = None
|
||||||
for baud_rate in [921600, 115200]:
|
for baud_rate in [921600, 115200]:
|
||||||
try:
|
try:
|
||||||
self._try_flash(erase_nvs, baud_rate)
|
self._try_flash(erase_nvs, baud_rate)
|
||||||
break
|
break
|
||||||
except RuntimeError:
|
except RuntimeError as e:
|
||||||
continue
|
last_error = e
|
||||||
else:
|
else:
|
||||||
raise IDFToolError()
|
raise last_error
|
||||||
|
|
||||||
@_uses_esptool
|
@_uses_esptool
|
||||||
def reset(self, esp):
|
def reset(self, esp):
|
||||||
|
Loading…
Reference in New Issue
Block a user