fix fingerprint test
old-commit-hash: e2253b072e89088a6ca78492754de319f50cff53
This commit is contained in:
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -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("")
|
||||
|
||||
Reference in New Issue
Block a user