File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -831,6 +831,7 @@ impl Step for RustdocGUI {
831831 command. arg ( "src/test/rustdoc-gui/lib.rs" ) . arg ( "-o" ) . arg ( & out_dir) ;
832832 builder. run ( & mut command) ;
833833
834+ let mut tests = Vec :: new ( ) ;
834835 for file in fs:: read_dir ( "src/test/rustdoc-gui" ) . unwrap ( ) {
835836 let file = file. unwrap ( ) ;
836837 let file_path = file. path ( ) ;
@@ -839,13 +840,17 @@ impl Step for RustdocGUI {
839840 if !file_name. to_str ( ) . unwrap ( ) . ends_with ( ".goml" ) {
840841 continue ;
841842 }
843+ tests. push ( file_path) ;
844+ }
845+ tests. sort_unstable ( ) ;
846+ for test in tests {
842847 let mut command = Command :: new ( & nodejs) ;
843848 command
844849 . arg ( "src/tools/rustdoc-gui/tester.js" )
845850 . arg ( "--doc-folder" )
846851 . arg ( out_dir. join ( "test_docs" ) )
847852 . arg ( "--test-file" )
848- . arg ( file_path ) ;
853+ . arg ( test ) ;
849854 builder. run ( & mut command) ;
850855 }
851856 } else {
You can’t perform that action at this time.
0 commit comments