mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 01:54:35 +02:00
test_apps/panic: apply pre-commit fixes in python scripts
This commit is contained in:
@@ -296,32 +296,32 @@ def test_gdbstub_abort(env, _extra_data):
|
||||
|
||||
@panic_test()
|
||||
def test_panic_ub(env, _extra_data):
|
||||
test.ub_inner(env, "panic")
|
||||
test.ub_inner(env, 'panic')
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_ub_uart_elf_crc(env, _extra_data):
|
||||
test.ub_inner(env, "coredump_uart_elf_crc")
|
||||
test.ub_inner(env, 'coredump_uart_elf_crc')
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_ub_uart_bin_crc(env, _extra_data):
|
||||
test.ub_inner(env, "coredump_uart_bin_crc")
|
||||
test.ub_inner(env, 'coredump_uart_bin_crc')
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_ub_flash_elf_sha(env, _extra_data):
|
||||
test.ub_inner(env, "coredump_flash_elf_sha")
|
||||
test.ub_inner(env, 'coredump_flash_elf_sha')
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_coredump_ub_flash_bin_crc(env, _extra_data):
|
||||
test.ub_inner(env, "coredump_flash_bin_crc")
|
||||
test.ub_inner(env, 'coredump_flash_bin_crc')
|
||||
|
||||
|
||||
@panic_test()
|
||||
def test_gdbstub_ub(env, _extra_data):
|
||||
test.ub_inner(env, "gdbstub")
|
||||
test.ub_inner(env, 'gdbstub')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@@ -150,12 +150,12 @@ def instr_fetch_prohibited_inner(env, test_name):
|
||||
|
||||
|
||||
def ub_inner(env, test_name):
|
||||
with get_dut(env, test_name, "test_ub") as dut:
|
||||
dut.expect(re.compile(r"Undefined behavior of type out_of_bounds"))
|
||||
with get_dut(env, test_name, 'test_ub') as dut:
|
||||
dut.expect(re.compile(r'Undefined behavior of type out_of_bounds'))
|
||||
dut.expect_backtrace()
|
||||
dut.expect_elf_sha256()
|
||||
dut.expect_none("Guru Meditation", "Re-entered core dump")
|
||||
dut.expect_none('Guru Meditation', 'Re-entered core dump')
|
||||
test_common(dut, test_name, expected_backtrace=[
|
||||
# Backtrace interrupted when abort is called, IDF-842
|
||||
"panic_abort", "esp_system_abort"
|
||||
'panic_abort', 'esp_system_abort'
|
||||
])
|
||||
|
Reference in New Issue
Block a user