reenable tests after moving std

This commit is contained in:
mark 2020-07-27 23:02:34 -05:00
parent 7b3a781937
commit 856f68fa14
2 changed files with 10 additions and 13 deletions

View file

@ -546,9 +546,7 @@ mod dist {
);
}
//FIXME(mark-i-m): reinstate this test when things are fixed...
//#[test]
#[allow(dead_code)]
#[test]
fn test_docs() {
// Behavior of `x.py test` doing various documentation tests.
let mut config = configure(&[], &[]);

View file

@ -106,19 +106,18 @@ impl Step for Linkcheck {
///
/// This tool in `src/tools` will verify the validity of all our links in the
/// documentation to ensure we don't have a bunch of dead ones.
fn run(self, _builder: &Builder<'_>) {
// FIXME(mark-i-m): uncomment this after we fix the links...
// let host = self.host;
fn run(self, builder: &Builder<'_>) {
let host = self.host;
// builder.info(&format!("Linkcheck ({})", host));
builder.info(&format!("Linkcheck ({})", host));
// builder.default_doc(None);
builder.default_doc(None);
// let _time = util::timeit(&builder);
// try_run(
// builder,
// builder.tool_cmd(Tool::Linkchecker).arg(builder.out.join(host.triple).join("doc")),
// );
let _time = util::timeit(&builder);
try_run(
builder,
builder.tool_cmd(Tool::Linkchecker).arg(builder.out.join(host.triple).join("doc")),
);
}
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {