From 23304593a6790368aa84e3f11712173e8024e363 Mon Sep 17 00:00:00 2001 From: steveklabnik Date: Mon, 13 Mar 2017 16:41:31 -0400 Subject: [PATCH] skip nostarch directory This is for coordinating with our publishers; we don't ever want to test it. --- src/bootstrap/check.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); }