diff options
| author | steveklabnik <steve@steveklabnik.com> | 2017-03-13 16:41:31 -0400 |
|---|---|---|
| committer | steveklabnik <steve@steveklabnik.com> | 2017-03-20 10:10:15 -0400 |
| commit | 23304593a6790368aa84e3f11712173e8024e363 (patch) | |
| tree | 0aebae26fdb86fe57fc3b22fb8e38c474aae716b | |
| parent | 966e72156ff8aae61b53009edbaaf765ca96b621 (diff) | |
| download | rust-23304593a6790368aa84e3f11712173e8024e363.tar.gz rust-23304593a6790368aa84e3f11712173e8024e363.zip | |
skip nostarch directory
This is for coordinating with our publishers; we don't ever want to test it.
| -rw-r--r-- | src/bootstrap/check.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs index 0d962bd3b0c..40cdb9242df 100644 --- a/src/bootstrap/check.rs +++ b/src/bootstrap/check.rs @@ -285,6 +285,16 @@ pub fn docs(build: &Build, compiler: &Compiler) { continue } + // The nostarch directory in the book is for no starch, and so isn't guaranteed to build. + // we don't care if it doesn't build, so skip it. + use std::ffi::OsStr; + let path: &OsStr = p.as_ref(); + if let Some(path) = path.to_str() { + if path.contains("nostarch") { + continue; + } + } + println!("doc tests for: {}", p.display()); markdown_test(build, compiler, &p); } |
