diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-07 16:51:00 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-07 16:51:00 +0200 |
| commit | 919bfd86d94e039b016a63d3e91bc16dd94a92bf (patch) | |
| tree | c8a8c57f1ff6e7ff4c1caad09a7e61d9615dcedd /src/bootstrap | |
| parent | e5f83d24aee866a14753a7cedbb4e301dfe5bef5 (diff) | |
| download | rust-919bfd86d94e039b016a63d3e91bc16dd94a92bf.tar.gz rust-919bfd86d94e039b016a63d3e91bc16dd94a92bf.zip | |
Don't stop running rustdoc-gui tests at first failure
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/test.rs | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index c98398cf1d2..df467bebe74 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -831,28 +831,14 @@ impl Step for RustdocGUI { command.arg("src/test/rustdoc-gui/lib.rs").arg("-o").arg(&out_dir); builder.run(&mut command); - let mut tests = Vec::new(); - for file in fs::read_dir("src/test/rustdoc-gui").unwrap() { - let file = file.unwrap(); - let file_path = file.path(); - let file_name = file.file_name(); - - if !file_name.to_str().unwrap().ends_with(".goml") { - continue; - } - tests.push(file_path); - } - tests.sort_unstable(); - for test in tests { - let mut command = Command::new(&nodejs); - command - .arg("src/tools/rustdoc-gui/tester.js") - .arg("--doc-folder") - .arg(out_dir.join("test_docs")) - .arg("--test-file") - .arg(test); - builder.run(&mut command); - } + let mut command = Command::new(&nodejs); + command + .arg("src/tools/rustdoc-gui/tester.js") + .arg("--doc-folder") + .arg(out_dir.join("test_docs")) + .arg("--tests-folder") + .arg("src/test/rustdoc-gui"); + builder.run(&mut command); } else { builder.info("No nodejs found, skipping \"src/test/rustdoc-gui\" tests"); } |
