mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 11:03:11 +00:00
Merge branch 'fix/coredump_test_tcb_corrupted_v5.2' into 'release/v5.2'
test(espcoredump): fix test for corrupted TCB handling in coredump (v5.2) See merge request espressif/esp-idf!45330
This commit is contained in:
@@ -93,9 +93,17 @@ class PanicTestDut(IdfDut):
|
||||
self.expect_exact('Backtrace:')
|
||||
self.expect_exact('CORRUPTED')
|
||||
|
||||
def expect_stack_dump(self) -> None:
|
||||
def expect_stack_dump(self) -> Any:
|
||||
"""Expect and capture the entire stack memory dump (RISC-V only).
|
||||
|
||||
Returns:
|
||||
str: The full stack dump hex data
|
||||
"""
|
||||
assert not self.is_xtensa, 'Stack memory dump is only printed on RISC-V'
|
||||
self.expect_exact('Stack memory:')
|
||||
pattern = re.compile(rb'\r?\n\r?\n')
|
||||
result = self.expect(pattern, return_what_before_match=True).decode('utf-8')
|
||||
return result.strip()
|
||||
|
||||
def expect_gme(self, reason: str) -> None:
|
||||
"""Expect method for Guru Meditation Errors"""
|
||||
|
||||
Reference in New Issue
Block a user