Skip to content

Commit

Permalink
ci: retry flash in test_pandad (commaai#34078)
Browse files Browse the repository at this point in the history
retry
  • Loading branch information
maxime-desroches authored Nov 21, 2024
1 parent 00c10f6 commit fc354ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/pandad/tests/test_pandad.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from cereal import log
from openpilot.common.gpio import gpio_set, gpio_init
from panda import Panda, PandaDFU, PandaProtocolMismatch
from openpilot.common.retry import retry
from openpilot.system.manager.process_config import managed_processes
from openpilot.system.hardware import HARDWARE
from openpilot.system.hardware.tici.pins import GPIO
Expand Down Expand Up @@ -51,6 +52,7 @@ def _assert_no_panda(self):
assert not Panda.wait_for_dfu(None, 3)
assert not Panda.wait_for_panda(None, 3)

@retry(attempts=3)
def _flash_bootstub_and_test(self, fn, expect_mismatch=False):
self._go_to_dfu()
pd = PandaDFU(None)
Expand Down

0 comments on commit fc354ec

Please sign in to comment.