mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
Merge branch 'enable_esp32p4_jtag_tests_v5.5' into 'release/v5.5'
Enable esp32p4 jtag tests (v5.5) See merge request espressif/esp-idf!50548
This commit is contained in:
+4
-2
@@ -187,7 +187,7 @@ class OpenOCD:
|
||||
ocd_env = os.environ.copy()
|
||||
ocd_env['LIBUSB_DEBUG'] = '1'
|
||||
|
||||
for _ in range(1, self.MAX_RETRIES + 1):
|
||||
for attempt in range(1, self.MAX_RETRIES + 1):
|
||||
try:
|
||||
self.proc = pexpect.spawn(
|
||||
command='openocd',
|
||||
@@ -203,7 +203,9 @@ class OpenOCD:
|
||||
self.write('log_output {}'.format(self.log_file))
|
||||
return self
|
||||
except (pexpect.exceptions.EOF, pexpect.exceptions.TIMEOUT, ConnectionRefusedError) as e:
|
||||
logging.error('Error running OpenOCD: %s', str(e))
|
||||
logging.error(
|
||||
'OpenOCD connection attempt %d/%d failed. Error: %s', attempt, self.MAX_RETRIES, type(e).__name__
|
||||
)
|
||||
self.kill()
|
||||
time.sleep(self.RETRY_DELAY)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user