diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a61d6786a7..60666b7afe 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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" diff --git a/selfdrive/test/test_fingerprints.py b/selfdrive/test/test_fingerprints.py index af544e1a7d..260d2f28dc 100755 --- a/selfdrive/test/test_fingerprints.py +++ b/selfdrive/test/test_fingerprints.py @@ -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("")