From fc354ec8cfa15baa1a20c5b5eeb3d3982b4cd467 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Thu, 21 Nov 2024 13:02:38 -0800 Subject: [PATCH] ci: retry flash in test_pandad (#34078) retry --- selfdrive/pandad/tests/test_pandad.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/pandad/tests/test_pandad.py b/selfdrive/pandad/tests/test_pandad.py index 213678193f..87f30e4793 100644 --- a/selfdrive/pandad/tests/test_pandad.py +++ b/selfdrive/pandad/tests/test_pandad.py @@ -6,6 +6,7 @@ import cereal.messaging as messaging 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 @@ -51,6 +52,7 @@ class TestPandad: 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)