Make the filenames of .stamp files generated by compiletest shorter.

Otherwise we run into filename length limitations on some file
systems (especially ecryptfs).
This commit is contained in:
Michael Woerister 2017-03-20 12:04:00 +01:00 committed by Peter Atashian
parent 58c701f5c7
commit cbb3af1e9c
No known key found for this signature in database
GPG Key ID: DE04D9E27559BC8A
1 changed files with 1 additions and 3 deletions

View File

@ -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())