Go back to -j1 in flutter_tools tests (#24196)
To see if it stops the Cirrus crashing
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:math' as math;
|
|
||||||
|
|
||||||
import 'package:path/path.dart' as path;
|
import 'package:path/path.dart' as path;
|
||||||
|
|
||||||
@@ -230,9 +229,7 @@ Future<void> _pubRunTest(
|
|||||||
String testPath,
|
String testPath,
|
||||||
bool enableFlutterToolAsserts = false
|
bool enableFlutterToolAsserts = false
|
||||||
}) {
|
}) {
|
||||||
final List<String> args = <String>['run', 'test', '-rcompact'];
|
final List<String> args = <String>['run', 'test', '-rcompact', '-j1'];
|
||||||
final int concurrency = math.max(1, Platform.numberOfProcessors - 1);
|
|
||||||
args.add('-j$concurrency');
|
|
||||||
if (!hasColor)
|
if (!hasColor)
|
||||||
args.add('--no-color');
|
args.add('--no-color');
|
||||||
if (testPath != null)
|
if (testPath != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user