File tree 1 file changed +4
-2
lines changed
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) {
248
248
opts [ "jobs" ] = 1 ;
249
249
console . log ( "`--no-headless` option is active, disabling concurrency for running tests." ) ;
250
250
}
251
-
252
- console . log ( `Running ${ files . length } rustdoc-gui (${ opts [ "jobs" ] } concurrently) ...` ) ;
251
+ let jobs = opts [ "jobs" ] ;
253
252
254
253
if ( opts [ "jobs" ] < 1 ) {
254
+ jobs = files . length ;
255
255
process . setMaxListeners ( files . length + 1 ) ;
256
256
} else if ( headless ) {
257
257
process . setMaxListeners ( opts [ "jobs" ] + 1 ) ;
258
258
}
259
259
260
+ console . log ( `Running ${ files . length } rustdoc-gui (${ jobs } concurrently) ...` ) ;
261
+
260
262
// We catch this "event" to display a nicer message in case of unexpected exit (because of a
261
263
// missing `--no-sandbox`).
262
264
const exitHandling = ( ) => {
You can’t perform that action at this time.
0 commit comments