mirror of
https://github.com/commaai/panda.git
synced 2026-06-11 22:55:01 +08:00
try this
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -120,6 +120,14 @@ pipeline {
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
])
|
||||
}
|
||||
}
|
||||
@@ -141,6 +149,14 @@ pipeline {
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
["test", "cd tests/hitl && pytest --durations=0 2*.py [8-9]*.py"],
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,13 +19,14 @@ def test_harness_status(p, panda_jungle):
|
||||
for ignition, orientation in itertools.product([True, False], [Panda.HARNESS_STATUS_NC, Panda.HARNESS_STATUS_NORMAL, Panda.HARNESS_STATUS_FLIPPED]):
|
||||
print()
|
||||
p.set_safety_mode(CarParams.SafetyModel.elm327)
|
||||
continue
|
||||
panda_jungle.set_harness_orientation(orientation)
|
||||
panda_jungle.set_ignition(ignition)
|
||||
|
||||
# wait for orientation detection
|
||||
time.sleep(0.25)
|
||||
|
||||
continue
|
||||
# here bad
|
||||
|
||||
health = p.health()
|
||||
detected_orientation = health['car_harness_status']
|
||||
|
||||
Reference in New Issue
Block a user