tmux paired with a quick script is paying dividends here.
1. Send keystrokes to GDB to restart the firmware
2. Wait 45 seconds
3. Look at the last line from the console output
4. If it looks bad, then flag a failure
5. Repeat
See `tmux send-keys` and `tmux capture-pane`