fix fingerprint test

pull/1094/head
Willem Melching 5 years ago
parent 4bbac7633e
commit e2253b072e
  1. 2
      .github/workflows/test.yaml
  2. 3
      selfdrive/test/test_fingerprints.py

@ -71,7 +71,7 @@ jobs:
run: $LOAD
- name: Run unit tests
run: |
$RUN cd /tmp/openpilot/selfdrive/test/test_fingerprints.py
$RUN /tmp/openpilot/selfdrive/test/test_fingerprints.py
$RUN "$UNIT_TEST common"
$RUN "$UNIT_TEST opendbc/can"
$RUN "$UNIT_TEST selfdrive/boardd"

@ -77,6 +77,9 @@ valid = True
for idx1, f1 in enumerate(fingerprints_flat):
for idx2, f2 in enumerate(fingerprints_flat):
if idx1 < idx2 and not check_fingerprint_consistency(f1, f2):
if car_names[idx1] == car_names[idx2]:
continue
valid = False
print("Those two fingerprints are inconsistent {0} {1}".format(car_names[idx1], car_names[idx2]))
print("")

Loading…
Cancel
Save