Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmach: android install/run: infer adb path from SDK dir #20421
Conversation
highfive
commented
Mar 24, 2018
|
Heads up! This PR modifies the following files:
|
|
Should the SDK’s adb (when found) be preferred over what’s in |
|
CC @jdm |
|
@SimonSapin I'm curious if you have a specific use case for having multiple installations of the Android tools? Without knowing the reason behind that setup, I'm tempted to say it's a broken environment, similarly to using Aptitude to install some application or library, and then doing a manual |
|
It’s less a use case than the accidental result of blindly following multiple sets of instructions on getting started with Android dev. I can believe that it’s a totally broken setup. If it’s easy for people to accidentally end up in this situation and easy for us to work around it, maybe we should? |
|
Okay, good point. I've updated the PR to prefer the SDK adb, and fallback to path ADB. Tested with and without If no |
|
I'll review this tomorrow. |
|
Sorry about the delay; this looks great! |
|
|
mach: android install/run: infer adb path from SDK dir <!-- Please describe your changes on the following line: --> Infer Android `adb` path from SDK directory in environment variables. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20219 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it is a build script change <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20421) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
@bors-servo force |
mach: android install/run: infer adb path from SDK dir <!-- Please describe your changes on the following line: --> Infer Android `adb` path from SDK directory in environment variables. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #20219 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it is a build script change <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20421) <!-- Reviewable:end -->
|
|
talklittle commentedMar 24, 2018
•
edited by SimonSapin
Infer Android
adbpath from SDK directory in environment variables../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is