cuatro: test in CI (#2218)

hitl
This commit is contained in:
Maxime Desroches
2025-05-27 13:04:48 -07:00
committed by GitHub
parent 56f9dbfaa6
commit b4bb4e8519
3 changed files with 14 additions and 2 deletions

12
Jenkinsfile vendored
View File

@@ -101,6 +101,18 @@ pipeline {
stage('parallel tests') {
parallel {
stage('test cuatro') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {
phone_steps("panda-cuatro", [
["build", "scons -j4"],
["flash", "cd scripts/ && ./reflash_internal_panda.py"],
["flash jungle", "cd board/jungle && ./flash.py --all"],
["test", "cd tests/hitl && HW_TYPES=10 pytest -n0 --durations=0 2*.py [5-9]*.py"],
])
}
}
stage('test tres') {
agent { docker { image 'ghcr.io/commaai/alpine-ssh'; args '--user=root' } }
steps {

View File

@@ -143,7 +143,7 @@ class Panda:
HW_TYPE_UNO: 5100,
HW_TYPE_DOS: 6500,
HW_TYPE_TRES: 6600,
HW_TYPE_CUATRO: 6600,
HW_TYPE_CUATRO: 12500,
}
HARNESS_STATUS_NC = 0

View File

@@ -44,7 +44,7 @@ def test_fan_cooldown(p):
time.sleep(3)
p.set_fan_power(0)
for _ in range(5):
assert p.get_fan_rpm() <= 7000
assert p.get_fan_rpm() <= Panda.MAX_FAN_RPMs[bytes(p.get_type())]
time.sleep(0.5)
def test_fan_overshoot(p):