Actually run "flutter create" before compiling the default app... (#13246)
This commit is contained in:
parent
a46679f758
commit
1bef312fb1
@ -85,6 +85,13 @@ TaskFunction createBasicMaterialCompileTest() {
|
|||||||
if (await sampleDir.exists())
|
if (await sampleDir.exists())
|
||||||
rmTree(sampleDir);
|
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();
|
return new CompileTest(sampleDir.path).run();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user