mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 06:12:11 +08:00
tici: better cleanup in amp test (#29146)
old-commit-hash: ed07c3ceda0b48a62f68a57541f1a9f788c1648d
This commit is contained in:
@@ -5,7 +5,7 @@ import unittest
|
||||
import subprocess
|
||||
|
||||
from panda import Panda
|
||||
from system.hardware import TICI
|
||||
from system.hardware import TICI, HARDWARE
|
||||
from system.hardware.tici.hardware import Tici
|
||||
from system.hardware.tici.amplifier import Amplifier
|
||||
|
||||
@@ -26,7 +26,7 @@ class TestAmplifier(unittest.TestCase):
|
||||
self.panda.reset()
|
||||
|
||||
def tearDown(self):
|
||||
self.panda.reset(reconnect=False)
|
||||
HARDWARE.reset_internal_panda()
|
||||
|
||||
def _check_for_i2c_errors(self, expected):
|
||||
dmesg = subprocess.check_output("dmesg", shell=True, encoding='utf8')
|
||||
|
||||
Reference in New Issue
Block a user