From 40884af28ef77dc13b226ba0bfeffa6865508d93 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Wed, 24 Jul 2019 13:20:08 -0700 Subject: [PATCH] check for directory instead of path separator (#36787) --- packages/flutter_tools/lib/src/commands/test.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/test.dart b/packages/flutter_tools/lib/src/commands/test.dart index 9b306f5cccd..e6319b51012 100644 --- a/packages/flutter_tools/lib/src/commands/test.dart +++ b/packages/flutter_tools/lib/src/commands/test.dart @@ -175,11 +175,11 @@ class TestCommand extends FastFlutterCommand { } } else { files = [ - for (String file in files) - if (file.endsWith(platform.pathSeparator)) - ..._findTests(fs.directory(file)) + for (String path in files) + if (fs.isDirectorySync(path)) + ..._findTests(fs.directory(path)) else - file + path ]; } @@ -263,6 +263,7 @@ class TestCommand extends FastFlutterCommand { assetBundle.entries); } } + bool _needRebuild(Map entries) { final File manifest = fs.file(fs.path.join('build', 'unit_test_assets', 'AssetManifest.json')); if (!manifest.existsSync()) {