summary refs log tree commit diff
path: root/src/bootstrap/test.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2019-08-01 13:18:12 -0700
committerEric Huss <eric@huss.org>2019-08-02 21:28:16 -0700
commit2da89dea4b724647eb08598f9c5a96c14934ac8a (patch)
treef182ef24165f64c8cca4ce12300d54645a4d1957 /src/bootstrap/test.rs
parentd9bd4b289f07956819c59704d88d9eed61af3a6d (diff)
downloadrust-2da89dea4b724647eb08598f9c5a96c14934ac8a.tar.gz
rust-2da89dea4b724647eb08598f9c5a96c14934ac8a.zip
Fix rustc-guide toolstate tracking.
Diffstat (limited to 'src/bootstrap/test.rs')
-rw-r--r--src/bootstrap/test.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 1f81efd16a7..e5b0a46ba6f 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -1527,7 +1527,12 @@ impl Step for RustcGuide {
     fn run(self, builder: &Builder<'_>) {
         let src = builder.src.join("src/doc/rustc-guide");
         let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
-        try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src));
+        let toolstate = if try_run(builder, rustbook_cmd.arg("linkcheck").arg(&src)) {
+            ToolState::TestPass
+        } else {
+            ToolState::TestFail
+        };
+        builder.save_toolstate("rustc-guide", toolstate);
     }
 }