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