cleanup old pedal stuff (#1552)

This commit is contained in:
Adeeb Shihadeh
2023-08-04 10:40:53 -07:00
committed by GitHub
parent d7120be904
commit 977d702770
4 changed files with 3 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
set -e
cd ..
PEDAL=1 scons -u -j$(nproc)
scons -u -j$(nproc)
cd pedal
../../tests/pedal/enter_canloader.py ../obj/pedal.bin.signed
../../tests/pedal/enter_canloader.py obj/pedal.bin.signed

View File

@@ -4,7 +4,7 @@ set -e
DFU_UTIL="dfu-util"
cd ..
PEDAL=1 scons -u -j$(nproc)
scons -u -j$(nproc)
cd pedal
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08004000 -D obj/pedal.bin.signed

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env python3
import os
import time
import subprocess
import unittest
from panda import Panda, PandaJungle, CanHandle, McuType, BASEDIR
@@ -44,7 +43,6 @@ class TestPedal(unittest.TestCase):
return msgs
def test_usb_fw(self):
subprocess.check_output(f"cd {BASEDIR} && PEDAL=1 PEDAL_USB=1 scons", shell=True)
self._flash_over_can(PEDAL_BUS, f"{BASEDIR}/board/pedal/obj/pedal_usb.bin.signed")
time.sleep(2)
with Panda(PEDAL_SERIAL) as p:
@@ -52,7 +50,6 @@ class TestPedal(unittest.TestCase):
self.assertTrue(self._listen_can_frames() > 40)
def test_nonusb_fw(self):
subprocess.check_output(f"cd {BASEDIR} && PEDAL=1 scons", shell=True)
self._flash_over_can(PEDAL_BUS, f"{BASEDIR}board/pedal/obj/pedal.bin.signed")
time.sleep(2)
self.assertTrue(self._listen_can_frames() > 40)