Skip to content

Commit

Permalink
Auto merge of rust-lang#9819 - ehuss:beta-move-tmp, r=alexcrichton
Browse files Browse the repository at this point in the history
[beta] Move `tmp` test directory.

This is a beta backport of rust-lang#9814.

Includes rust-lang#9824 to make CI pass.
  • Loading branch information
bors committed Aug 23, 2021
2 parents ecec075 + 7ab5d49 commit 32da73a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl Layout {
fingerprint: dest.join(".fingerprint"),
examples: dest.join("examples"),
doc: root.join("doc"),
tmp: dest.join("tmp"),
tmp: root.join("tmp"),
root,
dest,
_lock: lock,
Expand Down
1 change: 1 addition & 0 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ impl TomlProfile {
| "rust"
| "rustc"
| "rustdoc"
| "tmp"
| "uninstall"
) || lower_name.starts_with("cargo")
{
Expand Down
1 change: 0 additions & 1 deletion src/doc/src/reference/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ corresponding environment variable is set to the empty string, `""`.
where integration tests or benchmarks are free to put any data needed by
the tests/benches. Cargo initially creates this directory but doesn't
manage its content in any way, this is the responsibility of the test code.
There are separate directories for `debug` and `release` profiles.

[integration test]: cargo-targets.md#integration-tests
[`env` macro]: ../../std/macro.env.html
Expand Down
5 changes: 4 additions & 1 deletion tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,10 @@ fn crate_env_vars() {
let tmpdir: PathBuf = tmp.unwrap().into();
let exe: PathBuf = env::current_exe().unwrap().into();
let mut expected: PathBuf = exe.parent().unwrap().parent().unwrap().into();
let mut expected: PathBuf = exe.parent().unwrap()
.parent().unwrap()
.parent().unwrap()
.into();
expected.push("tmp");
assert_eq!(tmpdir, expected);
Expand Down
2 changes: 2 additions & 0 deletions tests/testsuite/rustdoc_extern_html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ fn simple() {
}

#[cargo_test]
// Broken, temporarily disable until https://github.com/rust-lang/rust/pull/82776 is resolved.
#[ignore]
fn std_docs() {
// Mapping std docs somewhere else.
if !is_nightly() {
Expand Down

0 comments on commit 32da73a

Please sign in to comment.