diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-10-07 07:31:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 07:31:00 -0400 |
commit | 87d32b31dffe6ba5b22668ec5a6cd0cff7fd55bd (patch) | |
tree | f0ed93650f3143536c59077c5bd81064ce160a47 /components/servo/lib.rs | |
parent | 76ddbe4d7afd48b83b23f3fd0cff47b214a0a290 (diff) | |
parent | 1f7ebfc8a2977a54d6ee8cd1777b1cdb410ac719 (diff) | |
download | servo-87d32b31dffe6ba5b22668ec5a6cd0cff7fd55bd.tar.gz servo-87d32b31dffe6ba5b22668ec5a6cd0cff7fd55bd.zip |
Auto merge of #21884 - servo:unit-rebuild, r=emilio
Make `mach test-unit` not recompile components after `mach build`
Previously, the `tests` feature flag of the `embedder_traits` crate caused it and every crate recursively depending on it to be built twice.
This feature flag was used to provide a specific set of "resources" when running tests. Instead, this commits overrides the `main()` function of the test harness to change resources at runtime before running any test.
This is done by adding a dependency that has `name = "test"` in its `[lib]` section of `Cargo.toml`. This overrides the crate found by `extern crate test;` in code generated by `rustc --test`.
<!-- 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/21884)
<!-- Reviewable:end -->
Diffstat (limited to 'components/servo/lib.rs')
0 files changed, 0 insertions, 0 deletions