v1.3增加一个简单的越障模式

This commit is contained in:
myperworld committed 2025-11-22 22:52:53 +08:00
1 parent 9d56ba85f1
commit 7a1931cb72
1835 files changed
+475654 -1

No files matched your search

@@ -0,0 +1,25 @@
import unittest
from pathlib import Path
from ci.util.map_dump import map_dump
HERE = Path(__file__).resolve().parent.absolute()
UNO = HERE / "uno"
class TestMapParser(unittest.TestCase):
def test_map_parser(self):
# If the UNO fixture directory is missing, skip with a warning
if not UNO.exists():
import warnings
warnings.warn(
"Skipping TestMapParser::test_map_parser because ci/tests/uno is missing."
)
self.skipTest("ci/tests/uno missing; skipping map parser test")
map_dump(UNO / "firmware.map")
if __name__ == "__main__":
unittest.main()