File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ async function main(argv) {
121121 }
122122 files = files . filter ( file => path . extname ( file ) == ".goml" ) ;
123123 if ( files . length === 0 ) {
124- console . log ( "rustdoc-gui: No test selected" ) ;
124+ console . error ( "rustdoc-gui: No test selected" ) ;
125125 process . exit ( 2 ) ;
126126 }
127127 files . sort ( ) ;
128128
129- console . log ( `running ${ files . length } rustdoc-gui tests` ) ;
129+ console . log ( `Running ${ files . length } rustdoc-gui tests... ` ) ;
130130 process . setMaxListeners ( files . length + 1 ) ;
131131 let tests = [ ] ;
132132 let results = new Array ( files . length ) ;
@@ -137,7 +137,6 @@ async function main(argv) {
137137 tests . push (
138138 runTest ( testPath , options )
139139 . then ( out => {
140- //console.log(i);
141140 const [ output , nb_failures ] = out ;
142141 results [ i ] = {
143142 status : nb_failures === 0 ? RUN_SUCCESS : RUN_FAILED ,
@@ -186,14 +185,8 @@ async function main(argv) {
186185 } ) ;
187186 // print run errors on the bottom so developers see them better
188187 results . forEach ( r => {
189- switch ( r . status ) {
190- case RUN_SUCCESS :
191- case RUN_FAILED :
192- // skip
193- break ;
194- case RUN_ERRORED :
195- console . error ( r . output ) ;
196- break ;
188+ if ( r . status === RUN_ERRORED ) {
189+ console . error ( r . output ) ;
197190 }
198191 } ) ;
199192
You can’t perform that action at this time.
0 commit comments