diff --git a/dev/bots/test.dart b/dev/bots/test.dart index a3cf5d1d5f..80617928eb 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -4,6 +4,7 @@ import 'dart:async'; import 'dart:io'; +import 'dart:math' as math; import 'package:path/path.dart' as path; @@ -199,6 +200,8 @@ Future _pubRunTest( bool enableFlutterToolAsserts = false }) { final List args = ['run', 'test', '-rcompact']; + final int concurrency = math.max(1, Platform.numberOfProcessors - 1); + args.add('-j$concurrency'); if (!hasColor) args.add('--no-color'); if (testPath != null)