fix: deploy.sh 串口自动检测支持 Linux(ttyACM/ttyUSB)+ 测试 + README - #21
Open
hisayya wants to merge 1 commit into
Open
Conversation
deploy.sh only auto-detected the macOS Arduino path (/dev/cu.usbmodem*), so Linux users (native USB CDC at /dev/ttyACM*, UART bridges at /dev/ttyUSB*) had to set PORT manually or the script reported no port. Scan both OS families with a find_port helper, keep the macOS paths for regressions, and make the error message name every pattern checked. Also document the hf CLI dependency that fetch_model.sh needs, which the README previously omitted. Tests: SerialPortIsAutoDetected stubs ls and verifies each family's port is picked; all 29 deploy tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20
deploy.sh只匹配 macOS/dev/cu.usbmodem*,Linux 用户(ESP32 生态主流)插板必报错。修复:find_port()扫描 ttyACM/ttyUSB/cu.usbmodem/cu.usbserialSerialPortIsAutoDetected测试(fake ls 模拟两平台)hfCLI 依赖与端口说明验证:
bash -n+unittest tests.test_deploy29/29 通过。