Unverified Commit 7ea164ec authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

More dart 2 fixes to fuchsia_tester.dart (#19846)

parent 730a534f
......@@ -38,12 +38,13 @@ void main(List<String> args) {
});
}
Iterable<String> _findTests(Directory directory) {
List<String> _findTests(Directory directory) {
return directory
.listSync(recursive: true, followLinks: false)
.where((FileSystemEntity entity) =>
entity.path.endsWith('_test.dart') && fs.isFileSync(entity.path))
.map((FileSystemEntity entity) => fs.path.absolute(entity.path));
.map((FileSystemEntity entity) => fs.path.absolute(entity.path))
.toList();
}
Future<Null> run(List<String> args) async {
......@@ -71,7 +72,7 @@ Future<Null> run(List<String> args) async {
Cache.flutterRoot = tempDirectory.path;
final Directory testDirectory =
fs.directory(argResults[_kOptionTestDirectory]);
final Iterable<String> tests = _findTests(testDirectory);
final List<String> tests = _findTests(testDirectory);
final List<String> testArgs = <String>[];
testArgs.add('--');
......
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