mirror of
https://gitlvb.teallvbs.xyz/IQ.Lvbs/IQ.Pilot.git
synced 2026-08-06 00:35:39 +08:00
17 lines
627 B
Python
17 lines
627 B
Python
"""
|
|
Copyright © IQ.Lvbs, apart of Project Teal Lvbs, All Rights Reserved, licensed under https://konn3kt.com/tos
|
|
"""
|
|
from openpilot.iqpilot.iq_maps.vendor_mapd_installer import sha256_of_file
|
|
from openpilot.iqpilot.iq_maps import VENDOR_MAPD_PATH
|
|
from openpilot.iqpilot.iq_maps.update_vendor_version import HASH_FILE
|
|
|
|
|
|
class TestMapdVersion:
|
|
def test_compare_versions(self):
|
|
mapd_hash = sha256_of_file(VENDOR_MAPD_PATH)
|
|
|
|
with open(HASH_FILE) as f:
|
|
current_hash = f.read().strip()
|
|
|
|
assert current_hash == mapd_hash, "Run iqpilot/iq_maps/update_vendor_version.py to update the current mapd version and hash"
|