diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2017-11-10 18:17:03 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2017-11-10 18:17:03 +0000 |
| commit | ec15924a064134565db0876ed83eb88cb2823d58 (patch) | |
| tree | af799a91fe81cd361b9a39d9768ee9800ae209cc | |
| parent | d5ff0e6422061c390a141354af8eacd540dca10b (diff) | |
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.
| -rw-r--r-- | src/tools/compiletest/src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs index 1701c8a3e43..437031c083a 100644 --- a/src/tools/compiletest/src/main.rs +++ b/src/tools/compiletest/src/main.rs @@ -491,6 +491,7 @@ fn stamp(config: &Config, testpaths: &TestPaths) -> PathBuf { config.stage_id); config.build_base.canonicalize() .unwrap_or_else(|_| config.build_base.clone()) + .join(&testpaths.relative_dir) .join(stamp_name) } @@ -522,6 +523,10 @@ fn up_to_date(config: &Config, testpaths: &TestPaths, props: &EarlyProps) -> boo let lib = lib.unwrap(); inputs.push(mtime(&lib.path())); } + if let Some(ref rustdoc_path) = config.rustdoc_path { + inputs.push(mtime(&rustdoc_path)); + inputs.push(mtime(&rust_src_dir.join("src/etc/htmldocck.py"))); + } inputs.iter().any(|input| *input > stamp) } |
