File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -468,9 +468,10 @@ const limit = (concurrency) => {
468
468
} ;
469
469
470
470
class WPTRunner {
471
- constructor ( path ) {
471
+ constructor ( path , { concurrency = os . availableParallelism ( ) - 1 || 1 } = { } ) {
472
472
this . path = path ;
473
473
this . resource = new ResourceLoader ( path ) ;
474
+ this . concurrency = concurrency ;
474
475
475
476
this . flags = [ ] ;
476
477
this . globalThisInitScripts = [ ] ;
@@ -595,7 +596,7 @@ class WPTRunner {
595
596
async runJsTests ( ) {
596
597
const queue = this . buildQueue ( ) ;
597
598
598
- const run = limit ( os . availableParallelism ( ) ) ;
599
+ const run = limit ( this . concurrency ) ;
599
600
600
601
for ( const spec of queue ) {
601
602
const content = spec . getContent ( ) ;
Original file line number Diff line number Diff line change 2
2
3
3
const { WPTRunner } = require ( '../common/wpt' ) ;
4
4
5
- const runner = new WPTRunner ( 'html/webappapis/timers' ) ;
5
+ const runner = new WPTRunner ( 'html/webappapis/timers' , { concurrency : 1 } ) ;
6
6
7
7
runner . runJsTests ( ) ;
Original file line number Diff line number Diff line change 3
3
import testpy
4
4
5
5
def 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