Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Ignore
CARGO_BUILD_TARGET
in tests
When build target triples are explicitly specified, the layout of the target directory is changed from `target/...` to `target/<triple>/...`. See: https://doc.rust-lang.org/cargo/guide/build-cache.html This caused bin tests failures in `tests/profile.rs`. This patch proposes that we simply ignore the `CARGO_BUILD_TARGET` env var in tests to avoid such problems. A new test is introduced to ensure the correct behavior.
- Loading branch information