Skip to content

Keep LF endings on the adb shim in Windows checkouts - #38

Merged
pierridotite merged 1 commit into
pierridotite:mainfrom
HamidP2M:fix/shim-lf-endings
Nov 29, 2026
Merged

pierridotite merged 1 commit into
pierridotite:mainfrom
HamidP2M:fix/shim-lf-endings

Conversation

@HamidP2M

Copy link
Copy Markdown
Contributor

scripts/android/shim/adb has no file extension, so the *.sh and *.py rules in .gitattributes don't cover it. In a Windows clone with core.autocrlf=true, it is checked out with CRLF line endings. Its shebang then reads bash\r, and every call through the shim exits with 127.

Result: the four test_ecr_trace.EndToEnd tests fail when the suite runs under WSL from a Windows checkout.

This PR adds one rule, scripts/android/shim/* text eol=lf, so the shim always keeps LF endings.

How I tested: on Windows 11, checking the shim out again gives w/lf. Under WSL Ubuntu (Python 3.14), python3 -m unittest discover -s tests -q gives 280 tests, OK (skipped=5). Before the fix, the same run had 4 errors, all exit status 127.

🤖 Generated with Claude Code

@pierridotite
pierridotite merged commit 8922361 into pierridotite:main Nov 29, 2026
2 checks passed

Copy link
Copy Markdown
Owner

Thanks, merged. Good catch: the shim has no extension, so the existing rules never covered it.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants