about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap_test.py
AgeCommit message (Collapse)AuthorLines
2020-12-27Don't use `self.date` unconditionally for `program_out_of_date()`Joshua Nelson-5/+6
This avoids unnecessary cache invalidations for programs not affected by the stage0 version (which is everything except the stage0 compiler itself). The redundant invalidations weren't noticed until now because they only showed up on stage0 bumps, at which point people are used to rebuilding everything anyway. I noticed it because I wasn't adding `self.date` to the stamp file (because I didn't realize it was necessary). Rather than adding self.date I thought it was better to remove it from the cache key.
2019-12-21bootstrap.py fetches rustfmt.Adam Perry-2/+2
Co-Authored-By: Mark Rousskov <mark.simulacrum@gmail.com>
2018-12-25Remove licensesMark Rousskov-10/+0
2017-10-09Add __future__ imports to increase compatibility with Python 3. Derive ↵johnthagen-0/+1
Option from object to make it a new-style class for Python 3 compatibility.
2017-09-02Remove invalid doctest from bootstrap.py.kennytm-2/+4
Make sure that if the test is failed, the CI will stop the build.
2017-07-25bootstrap: Major refactoringMilton Mazzarri-0/+114
This commit includes the following: * Fix syntax errors in Python 3 * Include more docstrings in classes, methods, and functions * Include unit tests using `unittest` * Merge implementation of `{rustc,cargo}_out_of_date` * Merge implementation of `RustBuild.{cargo,rustc}` * Remove unnecessary source code * Move all the attributes defined outside of `__init__` * Remove remaining `%s` from print function * Remove `WindowsError` reference on non-windows systems * Rename some variables to be more explicit avoid their meaning * Run bootstrap tests in the CI process * Remove non-pythonic getters * Remove duplicate code in `download_stage0` method * Reduce the number of branches in `build_bootstrap` method * Re-raise exception when we cannot execute uname in non-windows systems * Avoid long lines