File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -468,9 +468,10 @@ const limit = (concurrency) => {
468468} ;
469469
470470class WPTRunner {
471- constructor ( path ) {
471+ constructor ( path , { concurrency = os . availableParallelism ( ) - 1 || 1 } = { } ) {
472472 this . path = path ;
473473 this . resource = new ResourceLoader ( path ) ;
474+ this . concurrency = concurrency ;
474475
475476 this . flags = [ ] ;
476477 this . globalThisInitScripts = [ ] ;
@@ -595,7 +596,7 @@ class WPTRunner {
595596 async runJsTests ( ) {
596597 const queue = this . buildQueue ( ) ;
597598
598- const run = limit ( os . availableParallelism ( ) ) ;
599+ const run = limit ( this . concurrency ) ;
599600
600601 for ( const spec of queue ) {
601602 const content = spec . getContent ( ) ;
Original file line number Diff line number Diff line change 22
33const { WPTRunner } = require ( '../common/wpt' ) ;
44
5- const runner = new WPTRunner ( 'html/webappapis/timers' ) ;
5+ const runner = new WPTRunner ( 'html/webappapis/timers' , { concurrency : 1 } ) ;
66
77runner . runJsTests ( ) ;
Original file line number Diff line number Diff line change 33import testpy
44
55def GetConfiguration (context , root ):
6- return testpy .ParallelTestConfiguration (context , root , 'wpt' )
6+ return testpy .SimpleTestConfiguration (context , root , 'wpt' )
You can’t perform that action at this time.
0 commit comments