Actually run "flutter create" before compiling the default app... (#13246)

This commit is contained in:
Ian Hickson 2017-11-29 15:49:50 -08:00 committed by GitHub
parent a46679f758
commit 1bef312fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,13 @@ TaskFunction createBasicMaterialCompileTest() {
if (await sampleDir.exists())
rmTree(sampleDir);
await inDirectory(Directory.systemTemp, () async {
await flutter('create', options: <String>[sampleAppName]);
});
if (!(await sampleDir.exists()))
throw 'Failed to create default Flutter app in ${sampleDir.path}';
return new CompileTest(sampleDir.path).run();
};
}