test_apps/panic: apply pre-commit fixes in python scripts

This commit is contained in:
Ivan Grokhotkov
2021-01-24 16:37:28 +01:00
parent 9069f70db3
commit e3c8ea00d9
2 changed files with 10 additions and 10 deletions

View File

@@ -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__':

View File

@@ -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'
])