about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-06 16:51:04 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-06 16:51:04 +0200
commitcdbfea5c6cce88680239ddb796f1c8d2621e76d3 (patch)
tree588e68d7ca3ad9d1d3419429eb49bc2fc13c2f70 /src
parent24acc388da2cdbe1ec79b6933402941b6fffb26b (diff)
downloadrust-cdbfea5c6cce88680239ddb796f1c8d2621e76d3.tar.gz
rust-cdbfea5c6cce88680239ddb796f1c8d2621e76d3.zip
Sort rustdoc-gui tests
Diffstat (limited to 'src')
-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 de9c1882c7d..9243a0cdd9d 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -830,6 +830,7 @@ 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();
@@ -838,13 +839,17 @@ impl Step for RustdocGUI {
                 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(file_path);
+                    .arg(test);
                 builder.run(&mut command);
             }
         } else {