Skip to content

Commit cdbfea5

Browse files
Sort rustdoc-gui tests
1 parent 24acc38 commit cdbfea5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bootstrap/test.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,7 @@ impl Step for RustdocGUI {
830830
command.arg("src/test/rustdoc-gui/lib.rs").arg("-o").arg(&out_dir);
831831
builder.run(&mut command);
832832

833+
let mut tests = Vec::new();
833834
for file in fs::read_dir("src/test/rustdoc-gui").unwrap() {
834835
let file = file.unwrap();
835836
let file_path = file.path();
@@ -838,13 +839,17 @@ impl Step for RustdocGUI {
838839
if !file_name.to_str().unwrap().ends_with(".goml") {
839840
continue;
840841
}
842+
tests.push(file_path);
843+
}
844+
tests.sort_unstable();
845+
for test in tests {
841846
let mut command = Command::new(&nodejs);
842847
command
843848
.arg("src/tools/rustdoc-gui/tester.js")
844849
.arg("--doc-folder")
845850
.arg(out_dir.join("test_docs"))
846851
.arg("--test-file")
847-
.arg(file_path);
852+
.arg(test);
848853
builder.run(&mut command);
849854
}
850855
} else {

0 commit comments

Comments
 (0)