diff options
| author | Michael Woerister <michaelwoerister@posteo.net> | 2017-03-20 12:04:00 +0100 |
|---|---|---|
| committer | Peter Atashian <retep998@gmail.com> | 2017-03-21 16:50:36 -0400 |
| commit | cbb3af1e9c02bcb7c84a05bbcdb250e3e45c453c (patch) | |
| tree | c6d3754f4d084e258a7dd3dc2e1bc94d0e88f2f2 | |
| parent | 58c701f5c7dc26d9b55c631006ece52abe1ddce2 (diff) | |
| download | rust-cbb3af1e9c02bcb7c84a05bbcdb250e3e45c453c.tar.gz rust-cbb3af1e9c02bcb7c84a05bbcdb250e3e45c453c.zip | |
Make the filenames of .stamp files generated by compiletest shorter.
Otherwise we run into filename length limitations on some file systems (especially ecryptfs).
| -rw-r--r-- | src/tools/compiletest/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 5a97f7e3ee9..657739c65b1 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -486,11 +486,9 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn } fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf { - let stamp_name = format!("{}-H-{}-T-{}-S-{}.stamp", + let stamp_name = format!("{}-{}.stamp", testpaths.file.file_name().unwrap() .to_str().unwrap(), - config.host, - config.target, config.stage_id); config.build_base.canonicalize() .unwrap_or(config.build_base.clone()) |
