Unverified Commit 40884af2 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

check for directory instead of path separator (#36787)

parent 15e322c0
...@@ -175,11 +175,11 @@ class TestCommand extends FastFlutterCommand { ...@@ -175,11 +175,11 @@ class TestCommand extends FastFlutterCommand {
} }
} else { } else {
files = <String>[ files = <String>[
for (String file in files) for (String path in files)
if (file.endsWith(platform.pathSeparator)) if (fs.isDirectorySync(path))
..._findTests(fs.directory(file)) ..._findTests(fs.directory(path))
else else
file path
]; ];
} }
...@@ -263,6 +263,7 @@ class TestCommand extends FastFlutterCommand { ...@@ -263,6 +263,7 @@ class TestCommand extends FastFlutterCommand {
assetBundle.entries); assetBundle.entries);
} }
} }
bool _needRebuild(Map<String, DevFSContent> entries) { bool _needRebuild(Map<String, DevFSContent> entries) {
final File manifest = fs.file(fs.path.join('build', 'unit_test_assets', 'AssetManifest.json')); final File manifest = fs.file(fs.path.join('build', 'unit_test_assets', 'AssetManifest.json'));
if (!manifest.existsSync()) { if (!manifest.existsSync()) {
......
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