File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -830,6 +830,7 @@ impl Step for RustdocGUI {
830
830
command. arg ( "src/test/rustdoc-gui/lib.rs" ) . arg ( "-o" ) . arg ( & out_dir) ;
831
831
builder. run ( & mut command) ;
832
832
833
+ let mut tests = Vec :: new ( ) ;
833
834
for file in fs:: read_dir ( "src/test/rustdoc-gui" ) . unwrap ( ) {
834
835
let file = file. unwrap ( ) ;
835
836
let file_path = file. path ( ) ;
@@ -838,13 +839,17 @@ impl Step for RustdocGUI {
838
839
if !file_name. to_str ( ) . unwrap ( ) . ends_with ( ".goml" ) {
839
840
continue ;
840
841
}
842
+ tests. push ( file_path) ;
843
+ }
844
+ tests. sort_unstable ( ) ;
845
+ for test in tests {
841
846
let mut command = Command :: new ( & nodejs) ;
842
847
command
843
848
. arg ( "src/tools/rustdoc-gui/tester.js" )
844
849
. arg ( "--doc-folder" )
845
850
. arg ( out_dir. join ( "test_docs" ) )
846
851
. arg ( "--test-file" )
847
- . arg ( file_path ) ;
852
+ . arg ( test ) ;
848
853
builder. run ( & mut command) ;
849
854
}
850
855
} else {
You can’t perform that action at this time.
0 commit comments