mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-02 06:03:43 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
20 lines
687 B
Python
20 lines
687 B
Python
"""
|
|
Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors.
|
|
|
|
This file is part of sunnypilot and is licensed under the MIT License.
|
|
See the LICENSE.md file in the root directory for more details.
|
|
"""
|
|
from openpilot.sunnypilot import get_file_hash
|
|
from openpilot.sunnypilot.mapd import MAPD_PATH
|
|
from openpilot.sunnypilot.mapd.update_version import MAPD_HASH_PATH
|
|
|
|
|
|
class TestMapdVersion:
|
|
def test_compare_versions(self):
|
|
mapd_hash = get_file_hash(MAPD_PATH)
|
|
|
|
with open(MAPD_HASH_PATH) as f:
|
|
current_hash = f.read().strip()
|
|
|
|
assert current_hash == mapd_hash, "Run sunnypilot/mapd/update_version.py to update the current mapd version and hash"
|