servo/python/servo
bors-servo edd82b3c20 Auto merge of #17483 - jyc:fail-properly, r=wafflespeanut
mach: Fail properly if we can't find the path for OSMesa or GLAPI.

Currently we check `if not (osmesa_path and glapi_path)` after using
`path.join`. It seems we actually want to check whether
`find_dep_path_newest` returns something, because if calls to that
function fail, we'll instead get an error from `path.join` about
`NoneType` not having attribute `endswith` (it expects a string), which
preempts this check.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because this is a change to `./mach` (are there tests for that?)

<!-- 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/17483)
<!-- Reviewable:end -->
2017-07-02 14:17:50 -07:00
..
lints Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444 2017-04-22 14:17:10 +02:00
__init__.py Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
bootstrap.py Bootstrap: Fix cmake version parsing 2017-05-09 22:38:12 +02:00
bootstrap_commands.py Fetch "alt" rust std build when we do so for rustc 2017-06-30 15:44:03 +02:00
build_commands.py Changed the openssl url and bumped the version. Refactored the openssl.sh script to avoid version duplication in the code. 2017-06-12 07:55:03 +02:00
command_base.py mach: Fail properly if we can't find the path for OSMesa or GLAPI. 2017-06-22 14:45:30 -07:00
devenv_commands.py Add 'mach check' and 'mach check-geckolib' 2017-05-13 15:28:41 +02:00
package_commands.py Use new ARM target for nightly upload. 2017-06-12 08:58:47 -04:00
packages.py Remove more deprecated Windows GNU code/docs 2017-04-16 22:12:17 -04:00
post_build_commands.py Android life cycle improvements and Gradle integration 2017-04-21 18:24:10 +02:00
servo-binary-formula.rb.in Fix ./mach upload-nightly macbrew 2017-05-30 14:27:27 -04:00
testing_commands.py mach test --all doesn't crash when trying to run tidy. 2017-06-20 10:09:29 -04:00
util.py Move delete function to util.py 2017-04-18 09:30:41 -04:00
win32_toast.py Add proper Win32 notification for builds 2016-08-17 09:50:58 -04:00