[flutter_tools] more test fixes (#60144)

Fixes additional bugs uncovered by tester, style fixes to prevent suggested imports.
This commit is contained in:
Jonah Williams
2020-06-23 17:53:00 -07:00
committed by GitHub
parent 850ea6d29d
commit dd49e57be2
6 changed files with 113 additions and 77 deletions

View File

@@ -186,7 +186,9 @@ class TestCompiler {
// The idea is to keep the cache file up-to-date and include as
// much as possible in an effort to re-use as many packages as
// possible.
globals.fsUtils.ensureDirectoryExists(testFilePath);
if (!testCache.parent.existsSync()) {
testCache.parent.createSync(recursive: true);
}
await outputFile.copy(testFilePath);
}
request.result.complete(kernelReadyToRun.path);