diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-04-27 17:18:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 17:18:55 -0500 |
commit | 5c321737c65c1c7f11b9c58d010e07412403167a (patch) | |
tree | 808d776cc731ce37b19c63a31862bdac12fa40f4 /python/servo/bootstrap_commands.py | |
parent | 2c445169ad7ccf0e4b2be8f1eee2e198c54ee666 (diff) | |
parent | ba874d67bb3007dc0d0560e6a0c4f8173e327552 (diff) | |
download | servo-5c321737c65c1c7f11b9c58d010e07412403167a.tar.gz servo-5c321737c65c1c7f11b9c58d010e07412403167a.zip |
Auto merge of #16639 - aneeshusa:skip-nonexisting-dirs-when-cleaning-nightlies, r=jdm
Avoid searching for old nightlies in missing dirs
These directories may be missing (e.g. a first time build or due to Buildbot cleaning),
so don't try to look inside them for old nightlies if so.
I noticed this in http://build.servo.org/builders/arm32/builds/6815/steps/shell__1/logs/stdio.
<!-- 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: -->
- [ ] `./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
- [ ] These changes do not require tests because _____
<!-- 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/16639)
<!-- Reviewable:end -->
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index b12d8082d88..6866b543213 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -318,6 +318,8 @@ class MachCommands(CommandBase): removing_anything = False for tool in ["rust", "cargo"]: base = path.join(self.context.sharedir, tool) + if not path.isdir(base): + continue for name in os.listdir(base): # We append `-alt` if LLVM assertions aren't enabled, # so use just the commit hash itself. |