[testing] Create list from test list iterable

This fixes a bug in test.py's new --tests option.

Change-Id: I0410972116045c612429565081ad84735d2d2bf1
Reviewed-on: https://dart-review.googlesource.com/c/92784
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
This commit is contained in:
Alexander Thomas 2019-02-12 18:40:38 +00:00 committed by commit-bot@chromium.org
parent 66c404a26e
commit 0541640e37

View file

@ -513,7 +513,7 @@ compiler.''',
if (configuration.containsKey('test_list_contents')) {
_fail('--tests and --test-list cannot be used together');
}
configuration['test_list_contents'] = LineSplitter.split(tests);
configuration['test_list_contents'] = LineSplitter.split(tests).toList();
}
return _createConfigurations(configuration);