Unverified Commit 5eebfeb3 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Let bot/devicelab tests run concurrently (#21116)

parent 91dde907
...@@ -298,6 +298,7 @@ Future<Null> _runToolTests() async { ...@@ -298,6 +298,7 @@ Future<Null> _runToolTests() async {
await _pubRunTest( await _pubRunTest(
path.join(flutterRoot, 'packages', 'flutter_tools'), path.join(flutterRoot, 'packages', 'flutter_tools'),
enableFlutterToolAsserts: true, enableFlutterToolAsserts: true,
runConcurrently: false,
); );
print('${bold}DONE: All tests successful.$reset'); print('${bold}DONE: All tests successful.$reset');
...@@ -350,9 +351,13 @@ Future<Null> _runCoverage() async { ...@@ -350,9 +351,13 @@ Future<Null> _runCoverage() async {
Future<Null> _pubRunTest( Future<Null> _pubRunTest(
String workingDirectory, { String workingDirectory, {
String testPath, String testPath,
bool runConcurrently = true,
bool enableFlutterToolAsserts = false 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) if (!hasColor)
args.add('--no-color'); args.add('--no-color');
if (testPath != null) if (testPath != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment