Skip to content

Commit ec15924

Browse files
committed
compiletest: Fix a couple of test re-run issues
* Re-run rustdoc tests if rustdoc or htmldocck.py was updated. * Put stamp files in the correct subdirectories to avoid clashes when the file names match but the subdirectory doesn't.
1 parent d5ff0e6 commit ec15924

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/compiletest/src/main.rs

+5
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf {
491491
config.stage_id);
492492
config.build_base.canonicalize()
493493
.unwrap_or_else(|_| config.build_base.clone())
494+
.join(&testpaths.relative_dir)
494495
.join(stamp_name)
495496
}
496497

@@ -522,6 +523,10 @@ fn up_to_date(config: &Config, testpaths: &TestPaths, props: &EarlyProps) -> boo
522523
let lib = lib.unwrap();
523524
inputs.push(mtime(&lib.path()));
524525
}
526+
if let Some(ref rustdoc_path) = config.rustdoc_path {
527+
inputs.push(mtime(&rustdoc_path));
528+
inputs.push(mtime(&rust_src_dir.join("src/etc/htmldocck.py")));
529+
}
525530
inputs.iter().any(|input| *input > stamp)
526531
}
527532

0 commit comments

Comments
 (0)