Skip to content

Commit

Permalink
Make the filenames of .stamp files generated by compiletest shorter.
Browse files Browse the repository at this point in the history
Otherwise we run into filename length limitations on some file
systems (especially ecryptfs).
  • Loading branch information
michaelwoerister authored and retep998 committed Mar 21, 2017
1 parent 58c701f commit cbb3af1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/tools/compiletest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit cbb3af1

Please sign in to comment.