File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -248,15 +248,17 @@ async function main(argv) {
248248 opts [ "jobs" ] = 1 ;
249249 console . log ( "`--no-headless` option is active, disabling concurrency for running tests." ) ;
250250 }
251-
252- console . log ( `Running ${ files . length } rustdoc-gui (${ opts [ "jobs" ] } concurrently) ...` ) ;
251+ let jobs = opts [ "jobs" ] ;
253252
254253 if ( opts [ "jobs" ] < 1 ) {
254+ jobs = files . length ;
255255 process . setMaxListeners ( files . length + 1 ) ;
256256 } else if ( headless ) {
257257 process . setMaxListeners ( opts [ "jobs" ] + 1 ) ;
258258 }
259259
260+ console . log ( `Running ${ files . length } rustdoc-gui (${ jobs } concurrently) ...` ) ;
261+
260262 // We catch this "event" to display a nicer message in case of unexpected exit (because of a
261263 // missing `--no-sandbox`).
262264 const exitHandling = ( ) => {
You can’t perform that action at this time.
0 commit comments