From d11cfbe33ee92cfe5514ffe5e1b1fae297ce9d45 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 13 Feb 2020 16:53:41 -0800 Subject: [PATCH] fix fingerprint test old-commit-hash: e2253b072e89088a6ca78492754de319f50cff53 --- .github/workflows/test.yaml | 2 +- selfdrive/test/test_fingerprints.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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("")