ci: Extend timeout for initial gdbstub commands in panic tests

Theory is that on the runner, in rare cases, gdb may need more than
1 second to load and start responding to commands.

However it's possible these timeouts are due to some other problem
(like gdb failing)
This commit is contained in:
Angus Gratton
2021-03-30 11:01:39 +11:00
parent eec9e414d5
commit 4dba80239e
2 changed files with 14 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ def test_common(dut, test_name, expected_backtrace=None):
expected_backtrace = get_default_backtrace(dut.test_name)
if 'gdbstub' in test_name:
dut.expect('Entering gdb stub now.')
dut.start_gdb()
frames = dut.gdb_backtrace()
if not dut.match_backtrace(frames, expected_backtrace):