Let bot/devicelab tests run concurrently (#21116)

This commit is contained in:
Danny Tuppeny
2018-08-28 18:15:00 +01:00
committed by GitHub
parent 91dde9074a
commit 5eebfeb345

View File

@@ -298,6 +298,7 @@ Future<Null> _runToolTests() async {
await _pubRunTest(
path.join(flutterRoot, 'packages', 'flutter_tools'),
enableFlutterToolAsserts: true,
runConcurrently: false,
);
print('${bold}DONE: All tests successful.$reset');
@@ -350,9 +351,13 @@ Future<Null> _runCoverage() async {
Future<Null> _pubRunTest(
String workingDirectory, {
String testPath,
bool runConcurrently = true,
bool enableFlutterToolAsserts = false
}) {
final List<String> args = <String>['run', 'test', '-j1', '-rcompact'];
final List<String> args = <String>['run', 'test', '-rcompact'];
if (!runConcurrently) {
args.add('-j1');
}
if (!hasColor)
args.add('--no-color');
if (testPath != null)