From 5eebfeb345d04e734025f7e394148875d46bc640 Mon Sep 17 00:00:00 2001 From: Danny Tuppeny Date: Tue, 28 Aug 2018 18:15:00 +0100 Subject: [PATCH] Let bot/devicelab tests run concurrently (#21116) --- dev/bots/test.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 3eaabb7ac2..0946081052 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -298,6 +298,7 @@ Future _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 _runCoverage() async { Future _pubRunTest( String workingDirectory, { String testPath, + bool runConcurrently = true, bool enableFlutterToolAsserts = false }) { - final List args = ['run', 'test', '-j1', '-rcompact']; + final List args = ['run', 'test', '-rcompact']; + if (!runConcurrently) { + args.add('-j1'); + } if (!hasColor) args.add('--no-color'); if (testPath != null)